#151237#151237

#151237 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.070 H 282.3°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#151237
RGBrgb(21, 18, 55)
HSLhsl(245, 51%, 14%)
HSVhsv(245, 67%, 22%)
CMYKcmyk(61.8%, 67.3%, 0%, 78.4%)
CIE-LABlab(7.84, 14.15, -23.78)
CIE-LCHlch(7.84, 27.67, 300.76°)
OKLaboklab(21.13% 0.0148 -0.0681)
OKLCHoklch(21.13% 0.07 282.3)
XYZxyz(1.2149, 0.8678, 3.7172)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151237 #343712
analogous
#122237 #151237 #281237
triadic
#151237 #371512 #123715
tetradic
#151237 #371222 #343712 #123728
square
#151237 #371222 #343712 #123728
split-complementary
#151237 #372812 #223712
monochromatic
#090817 #090817 #151237 #272165 #383093

Accessibility & contrast

On white

17.89
#151237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#151237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151237
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151237#FFFFFF#000000##FFFFFF
##1512371.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#001636
Tritanopia (blue-blind)
#071B22
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #151237;
/* rgb */ color: rgb(21, 18, 55);
/* oklch */ color: oklch(21.1% 0.070 282.3);
Tailwind
colors: {
  custom: {
    50: '#564f6e',
    500: '#151237',
    950: '#000000',
  },
}
SCSS
$custom: #151237;
$custom-light: #564f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#151237",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 244.865,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21129,
    "c": 0.06969,
    "h": 282.3
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#151237
secondary
#6B7035
accent
#DA4ECF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #151237

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

Preview Lab → · Contrast checker → · Palette generator →

#151237 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva