#151F56#151F56

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

Color values

HEX#151F56
RGBrgb(21, 31, 86)
HSLhsl(231, 61%, 21%)
HSVhsv(231, 76%, 34%)
CMYKcmyk(75.6%, 64%, 0%, 66.3%)
CIE-LABlab(14.46, 16.96, -34.67)
CIE-LCHlch(14.46, 38.60, 296.07°)
OKLaboklab(26.92% 0.0006 -0.0999)
OKLCHoklch(26.92% 0.1 270.4)
XYZxyz(2.4784, 1.8110, 9.0212)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F56 #564C15
analogous
#153F56 #151F56 #2B1556
triadic
#151F56 #56151F #1F5615
tetradic
#151F56 #56153F #564C15 #15562B
square
#151F56 #56153F #564C15 #15562B
split-complementary
#151F56 #562B15 #3F5615
monochromatic
#060919 #090D25 #151F56 #213187 #2D42B8

Accessibility & contrast

On white

15.42
#151F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F56
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F56#FFFFFF#000000##FFFFFF
##151F561.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151f56;
/* rgb */ color: rgb(21, 31, 86);
/* oklch */ color: oklch(26.9% 0.100 270.4);
Tailwind
colors: {
  custom: {
    50: '#5d5a86',
    500: '#151f56',
    950: '#000000',
  },
}
SCSS
$custom: #151f56;
$custom-light: #5d5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#151f56",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 230.769,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26918,
    "c": 0.09995,
    "h": 270.4
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#151F56
secondary
#8E8139
accent
#CB44E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151F56

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

Preview Lab → · Contrast checker → · Palette generator →

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