#152C7C#152C7C

#152C7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.139 H 266.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#152C7C
RGBrgb(21, 44, 124)
HSLhsl(227, 71%, 28%)
HSVhsv(227, 83%, 49%)
CMYKcmyk(83.1%, 64.5%, 0%, 51.4%)
CIE-LABlab(21.64, 23.19, -47.78)
CIE-LCHlch(21.64, 53.11, 295.89°)
OKLaboklab(33.33% -0.009 -0.1383)
OKLCHoklch(33.33% 0.139 266.3)
XYZxyz(4.8468, 3.4155, 19.4687)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C7C #7C6515
analogous
#155F7C #152C7C #31157C
triadic
#152C7C #7C152C #2C7C15
tetradic
#152C7C #7C155F #7C6515 #157C31
square
#152C7C #7C155F #7C6515 #157C31
split-complementary
#152C7C #7C3115 #5F7C15
monochromatic
#04091A #0C1948 #152C7C #1E3FB0 #3056DC

Accessibility & contrast

On white

12.48
#152C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152C7C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C7C#FFFFFF#000000##FFFFFF
##152C7C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152c7c;
/* rgb */ color: rgb(21, 44, 124);
/* oklch */ color: oklch(33.3% 0.139 266.3);
Tailwind
colors: {
  custom: {
    50: '#6664a3',
    500: '#152c7c',
    950: '#000000',
  },
}
SCSS
$custom: #152c7c;
$custom-light: #6664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152c7c",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 226.602,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.13854,
    "h": 266.3
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#152C7C
secondary
#B1973C
accent
#C63AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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