#152161#152161

#152161 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.114 H 269.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#152161
RGBrgb(21, 33, 97)
HSLhsl(231, 64%, 23%)
HSVhsv(231, 78%, 38%)
CMYKcmyk(78.4%, 66%, 0%, 62%)
CIE-LABlab(16.05, 20.03, -39.43)
CIE-LCHlch(16.05, 44.22, 296.93°)
OKLaboklab(28.42% -0.0011 -0.1139)
OKLCHoklch(28.42% 0.114 269.4)
XYZxyz(3.0100, 2.1099, 11.5556)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152161 #615515
analogous
#154761 #152161 #2F1561
triadic
#152161 #611521 #216115
tetradic
#152161 #611547 #615515 #15612F
square
#152161 #611547 #615515 #15612F
split-complementary
#152161 #612F15 #476115
monochromatic
#050919 #0A102F #152161 #203293 #2B43C6

Accessibility & contrast

On white

14.77
#152161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#152161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152161
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152161#FFFFFF#000000##FFFFFF
##1521611.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #152161;
/* rgb */ color: rgb(21, 33, 97);
/* oklch */ color: oklch(28.4% 0.114 269.4);
Tailwind
colors: {
  custom: {
    50: '#5f5c8f',
    500: '#152161',
    950: '#000000',
  },
}
SCSS
$custom: #152161;
$custom-light: #5f5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#152161",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 230.526,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28415,
    "c": 0.1139,
    "h": 269.4
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#152161
secondary
#98893A
accent
#CD40E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #152161

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

Preview Lab → · Contrast checker → · Palette generator →

#152161 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva