#154172#154172

#154172 is a dark, moderate cyan. Relative luminance 0.052; OKLCH L 37.3% C 0.097 H 253.8°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#154172
RGBrgb(21, 65, 114)
HSLhsl(212, 69%, 26%)
HSVhsv(212, 82%, 45%)
CMYKcmyk(81.6%, 43%, 0%, 55.3%)
CIE-LABlab(27.17, 4.17, -32.49)
CIE-LCHlch(27.17, 32.75, 277.31°)
OKLaboklab(37.3% -0.0269 -0.0929)
OKLCHoklch(37.3% 0.097 253.8)
XYZxyz(5.2357, 5.1543, 16.6353)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154172 #724615
analogous
#157072 #154172 #181572
triadic
#154172 #721541 #417215
tetradic
#154172 #721570 #724615 #157218
square
#154172 #721570 #724615 #157218
split-complementary
#154172 #721815 #707215
monochromatic
#050F1A #0B243E #154172 #1F5EA6 #2A7CD8

Accessibility & contrast

On white

10.34
#154172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#154172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154172
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154172#FFFFFF#000000##FFFFFF
##1541721.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294574
Deuteranopia (green-blind)
#193C71
Tritanopia (blue-blind)
#004D54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #154172;
/* rgb */ color: rgb(21, 65, 114);
/* oklch */ color: oklch(37.3% 0.097 253.8);
Tailwind
colors: {
  custom: {
    50: '#62759b',
    500: '#154172',
    950: '#000000',
  },
}
SCSS
$custom: #154172;
$custom-light: #62759b;
$custom-dark: #000000;
JSON
{
  "hex": "#154172",
  "rgb": {
    "r": 21,
    "g": 65,
    "b": 114
  },
  "hsl": {
    "h": 211.613,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.373,
    "c": 0.09671,
    "h": 253.8
  },
  "luminance": 0.05155
}

Semantic roles & 50–950 ramp

primary
#154172
secondary
#A8743B
accent
#993CEC
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #154172

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

Preview Lab → · Contrast checker → · Palette generator →

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