#151E58#151E58

#151E58 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.104 H 270.8°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#151E58
RGBrgb(21, 30, 88)
HSLhsl(232, 61%, 21%)
HSVhsv(232, 76%, 35%)
CMYKcmyk(76.1%, 65.9%, 0%, 65.5%)
CIE-LABlab(14.36, 18.53, -36.19)
CIE-LCHlch(14.36, 40.65, 297.11°)
OKLaboklab(26.9% 0.0015 -0.1044)
OKLCHoklch(26.9% 0.104 270.8)
XYZxyz(2.5344, 1.7923, 9.4430)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E58 #584F15
analogous
#154058 #151E58 #2E1558
triadic
#151E58 #58151E #1E5815
tetradic
#151E58 #581540 #584F15 #15582E
square
#151E58 #581540 #584F15 #15582E
split-complementary
#151E58 #582E15 #405815
monochromatic
#060819 #090D27 #151E58 #212F89 #2D40BB

Accessibility & contrast

On white

15.46
#151E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151E58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E58
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E58#FFFFFF#000000##FFFFFF
##151E581.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151e58;
/* rgb */ color: rgb(21, 30, 88);
/* oklch */ color: oklch(26.9% 0.104 270.8);
Tailwind
colors: {
  custom: {
    50: '#5d5988',
    500: '#151e58',
    950: '#000000',
  },
}
SCSS
$custom: #151e58;
$custom-light: #5d5988;
$custom-dark: #000000;
JSON
{
  "hex": "#151e58",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 88
  },
  "hsl": {
    "h": 231.94,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26898,
    "c": 0.10444,
    "h": 270.8
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#151E58
secondary
#908439
accent
#CF43E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #151E58

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

Preview Lab → · Contrast checker → · Palette generator →

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