#152D68#152D68

#152D68 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.7% C 0.108 H 264.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#152D68
RGBrgb(21, 45, 104)
HSLhsl(223, 66%, 25%)
HSVhsv(223, 80%, 41%)
CMYKcmyk(79.8%, 56.7%, 0%, 59.2%)
CIE-LABlab(20.18, 14.18, -37.30)
CIE-LCHlch(20.18, 39.90, 290.81°)
OKLaboklab(31.7% -0.0106 -0.1074)
OKLCHoklch(31.7% 0.108 264.4)
XYZxyz(3.7455, 3.0353, 13.4825)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D68 #685015
analogous
#155768 #152D68 #271568
triadic
#152D68 #68152D #2D6815
tetradic
#152D68 #681557 #685015 #156827
square
#152D68 #681557 #685015 #156827
split-complementary
#152D68 #682715 #576815
monochromatic
#050B19 #0B1735 #152D68 #1F439B #2A59CE

Accessibility & contrast

On white

13.07
#152D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#152D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D68
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D68#FFFFFF#000000##FFFFFF
##152D681.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01356A
Deuteranopia (green-blind)
#002D67
Tritanopia (blue-blind)
#003B45
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152d68;
/* rgb */ color: rgb(21, 45, 104);
/* oklch */ color: oklch(31.7% 0.108 264.4);
Tailwind
colors: {
  custom: {
    50: '#606594',
    500: '#152d68',
    950: '#000000',
  },
}
SCSS
$custom: #152d68;
$custom-light: #606594;
$custom-dark: #000000;
JSON
{
  "hex": "#152d68",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 104
  },
  "hsl": {
    "h": 222.651,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31699,
    "c": 0.10797,
    "h": 264.4
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#152D68
secondary
#9F823A
accent
#B83EE9
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#05050D
muted
#7A7A7E

Preview Lab

Preview with #152D68

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

Preview Lab → · Contrast checker → · Palette generator →

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