#152E7F#152E7F

#152E7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.140 H 265.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#152E7F
RGBrgb(21, 46, 127)
HSLhsl(226, 72%, 29%)
HSVhsv(226, 83%, 50%)
CMYKcmyk(83.5%, 63.8%, 0%, 50.2%)
CIE-LABlab(22.46, 23.00, -48.33)
CIE-LCHlch(22.46, 53.52, 295.45°)
OKLaboklab(34.03% -0.0102 -0.1398)
OKLCHoklch(34.03% 0.14 265.8)
XYZxyz(5.1157, 3.6451, 20.5085)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E7F #7F6615
analogous
#15637F #152E7F #31157F
triadic
#152E7F #7F152E #2E7F15
tetradic
#152E7F #7F1563 #7F6615 #157F31
square
#152E7F #7F1563 #7F6615 #157F31
split-complementary
#152E7F #7F3115 #637F15
monochromatic
#040A1A #0C1B4A #152E7F #1E41B4 #315ADD

Accessibility & contrast

On white

12.14
#152E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#152E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E7F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E7F#FFFFFF#000000##FFFFFF
##152E7F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #152e7f;
/* rgb */ color: rgb(21, 46, 127);
/* oklch */ color: oklch(34.0% 0.140 265.8);
Tailwind
colors: {
  custom: {
    50: '#6766a5',
    500: '#152e7f',
    950: '#000000',
  },
}
SCSS
$custom: #152e7f;
$custom-light: #6766a5;
$custom-dark: #000000;
JSON
{
  "hex": "#152e7f",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 225.849,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34027,
    "c": 0.1402,
    "h": 265.8
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#152E7F
secondary
#B4983C
accent
#C439EE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152E7F

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

Preview Lab → · Contrast checker → · Palette generator →

#152E7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva