#154171#154171

#154171 is a dark, moderate cyan. Relative luminance 0.051; OKLCH L 37.2% C 0.095 H 253.4°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#154171
RGBrgb(21, 65, 113)
HSLhsl(211, 69%, 26%)
HSVhsv(211, 81%, 44%)
CMYKcmyk(81.4%, 42.5%, 0%, 55.7%)
CIE-LABlab(27.11, 3.75, -31.95)
CIE-LCHlch(27.11, 32.17, 276.70°)
OKLaboklab(37.23% -0.0272 -0.0913)
OKLCHoklch(37.23% 0.095 253.4)
XYZxyz(5.1791, 5.1317, 16.3371)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154171 #714515
analogous
#156F71 #154171 #171571
triadic
#154171 #711541 #417115
tetradic
#154171 #71156F #714515 #157117
square
#154171 #71156F #714515 #157117
split-complementary
#154171 #711715 #6F7115
monochromatic
#050F1A #0B233D #154171 #1F5FA5 #297CD7

Accessibility & contrast

On white

10.36
#154171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #154171
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154171#FFFFFF#000000##FFFFFF
##1541711.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4573
Deuteranopia (green-blind)
#1A3C70
Tritanopia (blue-blind)
#004C53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #154171;
/* rgb */ color: rgb(21, 65, 113);
/* oklch */ color: oklch(37.2% 0.095 253.4);
Tailwind
colors: {
  custom: {
    50: '#62759a',
    500: '#154171',
    950: '#000000',
  },
}
SCSS
$custom: #154171;
$custom-light: #62759a;
$custom-dark: #000000;
JSON
{
  "hex": "#154171",
  "rgb": {
    "r": 21,
    "g": 65,
    "b": 113
  },
  "hsl": {
    "h": 211.304,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.09528,
    "h": 253.4
  },
  "luminance": 0.05132
}

Semantic roles & 50–950 ramp

primary
#154171
secondary
#A7733B
accent
#983CEB
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #154171

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

Preview Lab → · Contrast checker → · Palette generator →

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