#152A6F#152A6F

#152A6F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.7% C 0.122 H 266.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#152A6F
RGBrgb(21, 42, 111)
HSLhsl(226, 68%, 26%)
HSVhsv(226, 81%, 44%)
CMYKcmyk(81.1%, 62.2%, 0%, 56.5%)
CIE-LABlab(19.89, 19.28, -42.31)
CIE-LCHlch(19.89, 46.50, 294.50°)
OKLaboklab(31.67% -0.0078 -0.1222)
OKLCHoklch(31.67% 0.122 266.3)
XYZxyz(4.0055, 2.9626, 15.3966)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A6F #6F5A15
analogous
#15576F #152A6F #2D156F
triadic
#152A6F #6F152A #2A6F15
tetradic
#152A6F #6F1557 #6F5A15 #156F2D
square
#152A6F #6F1557 #6F5A15 #156F2D
split-complementary
#152A6F #6F2D15 #576F15
monochromatic
#050A1A #0B173C #152A6F #1F3DA2 #2851D6

Accessibility & contrast

On white

13.19
#152A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#152A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A6F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A6F#FFFFFF#000000##FFFFFF
##152A6F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152a6f;
/* rgb */ color: rgb(21, 42, 111);
/* oklch */ color: oklch(31.7% 0.122 266.3);
Tailwind
colors: {
  custom: {
    50: '#626399',
    500: '#152a6f',
    950: '#000000',
  },
}
SCSS
$custom: #152a6f;
$custom-light: #626399;
$custom-dark: #000000;
JSON
{
  "hex": "#152a6f",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 226,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31666,
    "c": 0.12249,
    "h": 266.3
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#152A6F
secondary
#A58C3A
accent
#C23DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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