#151E62#151E62

#151E62 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.119 H 270.5°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#151E62
RGBrgb(21, 30, 98)
HSLhsl(233, 65%, 23%)
HSVhsv(233, 79%, 38%)
CMYKcmyk(78.6%, 69.4%, 0%, 61.6%)
CIE-LABlab(15.33, 22.59, -41.28)
CIE-LCHlch(15.33, 47.06, 298.69°)
OKLaboklab(27.91% 0.001 -0.1193)
OKLCHoklch(27.91% 0.119 270.5)
XYZxyz(2.9774, 1.9695, 11.7761)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E62 #625915
analogous
#154462 #151E62 #321562
triadic
#151E62 #62151E #1E6215
tetradic
#151E62 #621544 #625915 #156232
square
#151E62 #621544 #625915 #156232
split-complementary
#151E62 #623215 #446215
monochromatic
#050819 #0A0F30 #151E62 #202D94 #2B3DC7

Accessibility & contrast

On white

15.06
#151E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#151E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E62
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E62#FFFFFF#000000##FFFFFF
##151E621.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#00303D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151e62;
/* rgb */ color: rgb(21, 30, 98);
/* oklch */ color: oklch(27.9% 0.119 270.5);
Tailwind
colors: {
  custom: {
    50: '#60598f',
    500: '#151e62',
    950: '#000000',
  },
}
SCSS
$custom: #151e62;
$custom-light: #60598f;
$custom-dark: #000000;
JSON
{
  "hex": "#151e62",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 232.987,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2791,
    "c": 0.11935,
    "h": 270.5
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#151E62
secondary
#998E3A
accent
#D440E8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151E62

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

Preview Lab → · Contrast checker → · Palette generator →

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