#151F70#151F70

#151F70 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.138 H 269.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#151F70
RGBrgb(21, 31, 112)
HSLhsl(233, 68%, 26%)
HSVhsv(233, 81%, 44%)
CMYKcmyk(81.2%, 72.3%, 0%, 56.1%)
CIE-LABlab(17.03, 27.43, -47.65)
CIE-LCHlch(17.03, 54.98, 299.93°)
OKLaboklab(29.59% -0.0009 -0.138)
OKLCHoklch(29.59% 0.138 269.6)
XYZxyz(3.7229, 2.3088, 15.5755)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F70 #706615
analogous
#154C70 #151F70 #381570
triadic
#151F70 #70151F #1F7015
tetradic
#151F70 #70154C #706615 #157038
square
#151F70 #70154C #706615 #157038
split-complementary
#151F70 #703815 #4C7015
monochromatic
#05071A #0B113C #151F70 #1F2DA4 #293CD7

Accessibility & contrast

On white

14.37
#151F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#151F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F70
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F70#FFFFFF#000000##FFFFFF
##151F701.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #151f70;
/* rgb */ color: rgb(21, 31, 112);
/* oklch */ color: oklch(29.6% 0.138 269.6);
Tailwind
colors: {
  custom: {
    50: '#645b9a',
    500: '#151f70',
    950: '#000000',
  },
}
SCSS
$custom: #151f70;
$custom-light: #645b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#151f70",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 233.407,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2959,
    "c": 0.13796,
    "h": 269.6
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#151F70
secondary
#A69A3B
accent
#D83DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #151F70

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

Preview Lab → · Contrast checker → · Palette generator →

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