#15127F#15127F

#15127F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.170 H 270.4°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#15127F
RGBrgb(21, 18, 127)
HSLhsl(242, 75%, 28%)
HSVhsv(242, 86%, 50%)
CMYKcmyk(83.5%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.12, 40.45, -58.78)
CIE-LCHlch(16.12, 71.36, 304.53°)
OKLaboklab(29.47% 0.0011 -0.1701)
OKLCHoklch(29.47% 0.17 270.4)
XYZxyz(4.3550, 2.1238, 20.2550)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15127F #7C7F12
analogous
#12457F #15127F #4B127F
triadic
#15127F #7F1512 #127F15
tetradic
#15127F #7F1245 #7C7F12 #127F4B
square
#15127F #7F1245 #7C7F12 #127F4B
split-complementary
#15127F #7F4B12 #457F12
monochromatic
#04041B #0C0A49 #15127F #1E1AB5 #302BE1

Accessibility & contrast

On white

14.74
#15127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#15127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15127F
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15127F#FFFFFF#000000##FFFFFF
##15127F1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #15127f;
/* rgb */ color: rgb(21, 18, 127);
/* oklch */ color: oklch(29.5% 0.170 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#15127f',
    950: '#000000',
  },
}
SCSS
$custom: #15127f;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#15127f",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 241.651,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.2947,
    "c": 0.17014,
    "h": 270.4
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#15127F
secondary
#B1B538
accent
#F236ED
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #15127F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#15127F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva