#152C7B#152C7B

#152C7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.137 H 266.2°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#152C7B
RGBrgb(21, 44, 123)
HSLhsl(226, 71%, 28%)
HSVhsv(226, 83%, 48%)
CMYKcmyk(82.9%, 64.2%, 0%, 51.8%)
CIE-LABlab(21.54, 22.78, -47.30)
CIE-LCHlch(21.54, 52.50, 295.72°)
OKLaboklab(33.23% -0.009 -0.1368)
OKLCHoklch(33.23% 0.137 266.2)
XYZxyz(4.7838, 3.3903, 19.1373)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C7B #7B6415
analogous
#155F7B #152C7B #31157B
triadic
#152C7B #7B152C #2C7B15
tetradic
#152C7B #7B155F #7B6415 #157B31
square
#152C7B #7B155F #7B6415 #157B31
split-complementary
#152C7B #7B3115 #5F7B15
monochromatic
#04091A #0C1947 #152C7B #1E3FAF #2F56DB

Accessibility & contrast

On white

12.51
#152C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#152C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C7B
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C7B#FFFFFF#000000##FFFFFF
##152C7B1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152c7b;
/* rgb */ color: rgb(21, 44, 123);
/* oklch */ color: oklch(33.2% 0.137 266.2);
Tailwind
colors: {
  custom: {
    50: '#6664a2',
    500: '#152c7b',
    950: '#000000',
  },
}
SCSS
$custom: #152c7b;
$custom-light: #6664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#152c7b",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 226.471,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33232,
    "c": 0.13714,
    "h": 266.2
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#152C7B
secondary
#B0963B
accent
#C53AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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