#152F70#152F70

#152F70 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.117 H 264.4°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#152F70
RGBrgb(21, 47, 112)
HSLhsl(223, 68%, 26%)
HSVhsv(223, 81%, 44%)
CMYKcmyk(81.2%, 58%, 0%, 56.1%)
CIE-LABlab(21.44, 16.09, -40.44)
CIE-LCHlch(21.44, 43.52, 291.69°)
OKLaboklab(32.85% -0.0115 -0.1167)
OKLCHoklch(32.85% 0.117 264.4)
XYZxyz(4.2494, 3.3618, 15.7510)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F70 #705615
analogous
#155C70 #152F70 #281570
triadic
#152F70 #70152F #2F7015
tetradic
#152F70 #70155C #705615 #157028
square
#152F70 #70155C #705615 #157028
split-complementary
#152F70 #702815 #5C7015
monochromatic
#050B1A #0B193C #152F70 #1F45A4 #295AD7

Accessibility & contrast

On white

12.56
#152F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F70
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F70#FFFFFF#000000##FFFFFF
##152F701.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152f70;
/* rgb */ color: rgb(21, 47, 112);
/* oklch */ color: oklch(32.9% 0.117 264.4);
Tailwind
colors: {
  custom: {
    50: '#62679a',
    500: '#152f70',
    950: '#000000',
  },
}
SCSS
$custom: #152f70;
$custom-light: #62679a;
$custom-dark: #000000;
JSON
{
  "hex": "#152f70",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 112
  },
  "hsl": {
    "h": 222.857,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32853,
    "c": 0.11723,
    "h": 264.4
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#152F70
secondary
#A6873B
accent
#B93DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #152F70

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

Preview Lab → · Contrast checker → · Palette generator →

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