#151F43#151F43

#151F43 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.069 H 269.3°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#151F43
RGBrgb(21, 31, 67)
HSLhsl(227, 52%, 17%)
HSVhsv(227, 69%, 26%)
CMYKcmyk(68.7%, 53.7%, 0%, 73.7%)
CIE-LABlab(12.89, 9.05, -24.18)
CIE-LCHlch(12.89, 25.82, 290.53°)
OKLaboklab(25.23% -0.0009 -0.0691)
OKLCHoklch(25.23% 0.069 269.3)
XYZxyz(1.8120, 1.5445, 5.5117)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F43 #433915
analogous
#153643 #151F43 #221543
triadic
#151F43 #43151F #1F4315
tetradic
#151F43 #431536 #433915 #154322
square
#151F43 #431536 #433915 #154322
split-complementary
#151F43 #432215 #364315
monochromatic
#070B17 #070B17 #151F43 #243572 #324AA0

Accessibility & contrast

On white

16.04
#151F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#151F43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F43
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F43#FFFFFF#000000##FFFFFF
##151F431.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2344
Deuteranopia (green-blind)
#061F42
Tritanopia (blue-blind)
#00272D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151f43;
/* rgb */ color: rgb(21, 31, 67);
/* oklch */ color: oklch(25.2% 0.069 269.3);
Tailwind
colors: {
  custom: {
    50: '#585a77',
    500: '#151f43',
    950: '#000000',
  },
}
SCSS
$custom: #151f43;
$custom-light: #585a77;
$custom-dark: #000000;
JSON
{
  "hex": "#151f43",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 67
  },
  "hsl": {
    "h": 226.957,
    "s": 52.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25234,
    "c": 0.06911,
    "h": 269.3
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#151F43
secondary
#7B6C39
accent
#BC4CDC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #151F43

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

Preview Lab → · Contrast checker → · Palette generator →

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