#151F53#151F53

#151F53 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.095 H 270.3°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#151F53
RGBrgb(21, 31, 83)
HSLhsl(230, 60%, 20%)
HSVhsv(230, 75%, 33%)
CMYKcmyk(74.7%, 62.7%, 0%, 67.5%)
CIE-LABlab(14.19, 15.72, -33.07)
CIE-LCHlch(14.19, 36.62, 295.42°)
OKLaboklab(26.64% 0.0006 -0.0953)
OKLCHoklch(26.64% 0.095 270.3)
XYZxyz(2.3600, 1.7637, 8.3980)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F53 #534915
analogous
#153E53 #151F53 #2A1553
triadic
#151F53 #53151F #1F5315
tetradic
#151F53 #53153E #534915 #15532A
square
#151F53 #53153E #534915 #15532A
split-complementary
#151F53 #532A15 #3E5315
monochromatic
#060918 #090D22 #151F53 #213184 #2E43B5

Accessibility & contrast

On white

15.52
#151F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F53
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F53#FFFFFF#000000##FFFFFF
##151F531.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151f53;
/* rgb */ color: rgb(21, 31, 83);
/* oklch */ color: oklch(26.6% 0.095 270.3);
Tailwind
colors: {
  custom: {
    50: '#5c5a84',
    500: '#151f53',
    950: '#000000',
  },
}
SCSS
$custom: #151f53;
$custom-light: #5c5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#151f53",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 230.323,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26635,
    "c": 0.09527,
    "h": 270.3
  },
  "luminance": 0.01764
}

Semantic roles & 50–950 ramp

primary
#151F53
secondary
#8B7E39
accent
#C945E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151F53

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

Preview Lab → · Contrast checker → · Palette generator →

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