#152147#152147

#152147 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.073 H 267.9°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#152147
RGBrgb(21, 33, 71)
HSLhsl(226, 54%, 18%)
HSVhsv(226, 70%, 28%)
CMYKcmyk(70.4%, 53.5%, 0%, 72.2%)
CIE-LABlab(13.84, 9.20, -25.43)
CIE-LCHlch(13.84, 27.04, 289.89°)
OKLaboklab(26.05% -0.0026 -0.0728)
OKLCHoklch(26.05% 0.073 267.9)
XYZxyz(1.9901, 1.7019, 6.1836)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152147 #473B15
analogous
#153A47 #152147 #221547
triadic
#152147 #471521 #214715
tetradic
#152147 #47153A #473B15 #154722
square
#152147 #47153A #473B15 #154722
split-complementary
#152147 #472215 #3A4715
monochromatic
#070B18 #070B18 #152147 #233776 #314DA5

Accessibility & contrast

On white

15.67
#152147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#152147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152147
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152147#FFFFFF#000000##FFFFFF
##1521471.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2648
Deuteranopia (green-blind)
#052146
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #152147;
/* rgb */ color: rgb(21, 33, 71);
/* oklch */ color: oklch(26.1% 0.073 267.9);
Tailwind
colors: {
  custom: {
    50: '#595b7a',
    500: '#152147',
    950: '#000000',
  },
}
SCSS
$custom: #152147;
$custom-light: #595b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#152147",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 225.6,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26054,
    "c": 0.07281,
    "h": 267.9
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#152147
secondary
#7F6E39
accent
#BA4ADE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #152147

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

Preview Lab → · Contrast checker → · Palette generator →

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