#151B6F#151B6F

#151B6F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.141 H 270.5°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#151B6F
RGBrgb(21, 27, 111)
HSLhsl(236, 68%, 26%)
HSVhsv(236, 81%, 44%)
CMYKcmyk(81.1%, 75.7%, 0%, 56.5%)
CIE-LABlab(15.96, 29.70, -48.77)
CIE-LCHlch(15.96, 57.10, 301.34°)
OKLaboklab(28.78% 0.0013 -0.1412)
OKLCHoklch(28.78% 0.141 270.5)
XYZxyz(3.5695, 2.0906, 15.2512)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B6F #6F6915
analogous
#15486F #151B6F #3C156F
triadic
#151B6F #6F151B #1B6F15
tetradic
#151B6F #6F1548 #6F6915 #156F3C
square
#151B6F #6F1548 #6F6915 #156F3C
split-complementary
#151B6F #6F3C15 #486F15
monochromatic
#05061A #0B0E3C #151B6F #1F28A2 #2834D6

Accessibility & contrast

On white

14.81
#151B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#151B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B6F
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B6F#FFFFFF#000000##FFFFFF
##151B6F1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C71
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151b6f;
/* rgb */ color: rgb(21, 27, 111);
/* oklch */ color: oklch(28.8% 0.141 270.5);
Tailwind
colors: {
  custom: {
    50: '#645899',
    500: '#151b6f',
    950: '#000000',
  },
}
SCSS
$custom: #151b6f;
$custom-light: #645899;
$custom-dark: #000000;
JSON
{
  "hex": "#151b6f",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 236,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28783,
    "c": 0.14124,
    "h": 270.5
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#151B6F
secondary
#A59E3A
accent
#DF3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #151B6F

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

Preview Lab → · Contrast checker → · Palette generator →

#151B6F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva