#151F58#151F58

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

Color values

HEX#151F58
RGBrgb(21, 31, 88)
HSLhsl(231, 61%, 21%)
HSVhsv(231, 76%, 35%)
CMYKcmyk(76.1%, 64.8%, 0%, 65.5%)
CIE-LABlab(14.64, 17.79, -35.72)
CIE-LCHlch(14.64, 39.90, 296.48°)
OKLaboklab(27.11% 0.0006 -0.103)
OKLCHoklch(27.11% 0.103 270.4)
XYZxyz(2.5601, 1.8437, 9.4516)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F58 #584E15
analogous
#154158 #151F58 #2D1558
triadic
#151F58 #58151F #1F5815
tetradic
#151F58 #581541 #584E15 #15582D
square
#151F58 #581541 #584E15 #15582D
split-complementary
#151F58 #582D15 #415815
monochromatic
#060919 #090E27 #151F58 #213089 #2D42BB

Accessibility & contrast

On white

15.34
#151F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#151F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F58
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F58#FFFFFF#000000##FFFFFF
##151F581.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151f58;
/* rgb */ color: rgb(21, 31, 88);
/* oklch */ color: oklch(27.1% 0.103 270.4);
Tailwind
colors: {
  custom: {
    50: '#5d5a88',
    500: '#151f58',
    950: '#000000',
  },
}
SCSS
$custom: #151f58;
$custom-light: #5d5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#151f58",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 231.045,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27111,
    "c": 0.10304,
    "h": 270.4
  },
  "luminance": 0.01844
}

Semantic roles & 50–950 ramp

primary
#151F58
secondary
#908339
accent
#CC43E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #151F58

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

Preview Lab → · Contrast checker → · Palette generator →

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