#153271#153271

#153271 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.115 H 263.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#153271
RGBrgb(21, 50, 113)
HSLhsl(221, 69%, 26%)
HSVhsv(221, 81%, 44%)
CMYKcmyk(81.4%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.42, 14.34, -39.50)
CIE-LCHlch(22.42, 42.02, 289.96°)
OKLaboklab(33.62% -0.0138 -0.1138)
OKLCHoklch(33.62% 0.115 263.1)
XYZxyz(4.4294, 3.6324, 16.0873)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#153271 #715415
analogous
#156071 #153271 #261571
triadic
#153271 #711532 #327115
tetradic
#153271 #711560 #715415 #157126
square
#153271 #711560 #715415 #157126
split-complementary
#153271 #712615 #607115
monochromatic
#050B1A #0B1B3D #153271 #1F49A5 #2960D7

Accessibility & contrast

On white

12.16
#153271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#153271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #153271
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##153271#FFFFFF#000000##FFFFFF
##1532711.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A73
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #153271;
/* rgb */ color: rgb(21, 50, 113);
/* oklch */ color: oklch(33.6% 0.115 263.1);
Tailwind
colors: {
  custom: {
    50: '#62699a',
    500: '#153271',
    950: '#000000',
  },
}
SCSS
$custom: #153271;
$custom-light: #62699a;
$custom-dark: #000000;
JSON
{
  "hex": "#153271",
  "rgb": {
    "r": 21,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 221.087,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33619,
    "c": 0.11466,
    "h": 263.1
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#153271
secondary
#A7853B
accent
#B43CEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #153271

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

Preview Lab → · Contrast checker → · Palette generator →

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