#151F60#151F60

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

Color values

HEX#151F60
RGBrgb(21, 31, 96)
HSLhsl(232, 64%, 23%)
HSVhsv(232, 78%, 38%)
CMYKcmyk(78.1%, 67.7%, 0%, 62.4%)
CIE-LABlab(15.40, 21.07, -39.83)
CIE-LCHlch(15.40, 45.06, 297.87°)
OKLaboklab(27.9% 0.0004 -0.1151)
OKLCHoklch(27.9% 0.115 270.2)
XYZxyz(2.9098, 1.9836, 11.2936)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F60 #605615
analogous
#154460 #151F60 #301560
triadic
#151F60 #60151F #1F6015
tetradic
#151F60 #601544 #605615 #156030
square
#151F60 #601544 #605615 #156030
split-complementary
#151F60 #603015 #446015
monochromatic
#050819 #0A0F2E #151F60 #202F92 #2B3FC4

Accessibility & contrast

On white

15.03
#151F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F60
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F60#FFFFFF#000000##FFFFFF
##151F601.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151f60;
/* rgb */ color: rgb(21, 31, 96);
/* oklch */ color: oklch(27.9% 0.115 270.2);
Tailwind
colors: {
  custom: {
    50: '#5f5a8e',
    500: '#151f60',
    950: '#000000',
  },
}
SCSS
$custom: #151f60;
$custom-light: #5f5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#151f60",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 232,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27904,
    "c": 0.1151,
    "h": 270.2
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#151F60
secondary
#978B3A
accent
#D141E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151F60

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

Preview Lab → · Contrast checker → · Palette generator →

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