#151F62#151F62

#151F62 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.1% C 0.118 H 270.2°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#151F62
RGBrgb(21, 31, 98)
HSLhsl(232, 65%, 23%)
HSVhsv(232, 79%, 38%)
CMYKcmyk(78.6%, 68.4%, 0%, 61.6%)
CIE-LABlab(15.60, 21.88, -40.84)
CIE-LCHlch(15.60, 46.33, 298.18°)
OKLaboklab(28.11% 0.0003 -0.118)
OKLCHoklch(28.11% 0.118 270.2)
XYZxyz(3.0031, 2.0209, 11.7847)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F62 #625815
analogous
#154562 #151F62 #311562
triadic
#151F62 #62151F #1F6215
tetradic
#151F62 #621545 #625815 #156231
square
#151F62 #621545 #625815 #156231
split-complementary
#151F62 #623115 #456215
monochromatic
#050819 #0A0F30 #151F62 #202F94 #2B3FC7

Accessibility & contrast

On white

14.96
#151F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#151F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F62
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F62#FFFFFF#000000##FFFFFF
##151F621.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151f62;
/* rgb */ color: rgb(21, 31, 98);
/* oklch */ color: oklch(28.1% 0.118 270.2);
Tailwind
colors: {
  custom: {
    50: '#605a8f',
    500: '#151f62',
    950: '#000000',
  },
}
SCSS
$custom: #151f62;
$custom-light: #605a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#151f62",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 232.208,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28108,
    "c": 0.11805,
    "h": 270.2
  },
  "luminance": 0.02021
}

Semantic roles & 50–950 ramp

primary
#151F62
secondary
#998D3A
accent
#D240E8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151F62

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

Preview Lab → · Contrast checker → · Palette generator →

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