#151F66#151F66

#151F66 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.5% C 0.124 H 270.0°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#151F66
RGBrgb(21, 31, 102)
HSLhsl(233, 66%, 24%)
HSVhsv(233, 79%, 40%)
CMYKcmyk(79.4%, 69.6%, 0%, 60%)
CIE-LABlab(16.00, 23.48, -42.82)
CIE-LCHlch(16.00, 48.84, 298.74°)
OKLaboklab(28.52% 0.0001 -0.1239)
OKLCHoklch(28.52% 0.124 270)
XYZxyz(3.1967, 2.0984, 12.8043)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F66 #665C15
analogous
#154866 #151F66 #341566
triadic
#151F66 #66151F #1F6615
tetradic
#151F66 #661548 #665C15 #156634
square
#151F66 #661548 #665C15 #156634
split-complementary
#151F66 #663415 #486615
monochromatic
#050819 #0B1033 #151F66 #1F2E99 #2A3ECC

Accessibility & contrast

On white

14.79
#151F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F66
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F66#FFFFFF#000000##FFFFFF
##151F661.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#00323F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151f66;
/* rgb */ color: rgb(21, 31, 102);
/* oklch */ color: oklch(28.5% 0.124 270.0);
Tailwind
colors: {
  custom: {
    50: '#615a92',
    500: '#151f66',
    950: '#000000',
  },
}
SCSS
$custom: #151f66;
$custom-light: #615a92;
$custom-dark: #000000;
JSON
{
  "hex": "#151f66",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 232.593,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28522,
    "c": 0.12386,
    "h": 270
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#151F66
secondary
#9D913A
accent
#D43FE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #151F66

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

Preview Lab → · Contrast checker → · Palette generator →

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