#154271#154271

#154271 is a dark, moderate cyan. Relative luminance 0.052; OKLCH L 37.5% C 0.094 H 252.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#154271
RGBrgb(21, 66, 113)
HSLhsl(211, 69%, 26%)
HSVhsv(211, 81%, 44%)
CMYKcmyk(81.4%, 41.6%, 0%, 55.7%)
CIE-LABlab(27.43, 3.07, -31.44)
CIE-LCHlch(27.43, 31.59, 275.58°)
OKLaboklab(37.48% -0.0281 -0.0898)
OKLCHoklch(37.48% 0.094 252.6)
XYZxyz(5.2370, 5.2475, 16.3564)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154271 #714415
analogous
#157071 #154271 #161571
triadic
#154271 #711542 #427115
tetradic
#154271 #711570 #714415 #157116
square
#154271 #711570 #714415 #157116
split-complementary
#154271 #711615 #707115
monochromatic
#050F1A #0B243D #154271 #1F60A5 #297ED7

Accessibility & contrast

On white

10.25
#154271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#154271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154271
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154271#FFFFFF#000000##FFFFFF
##1542711.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#1D3D70
Tritanopia (blue-blind)
#004D54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #154271;
/* rgb */ color: rgb(21, 66, 113);
/* oklch */ color: oklch(37.5% 0.094 252.6);
Tailwind
colors: {
  custom: {
    50: '#62759a',
    500: '#154271',
    950: '#000000',
  },
}
SCSS
$custom: #154271;
$custom-light: #62759a;
$custom-dark: #000000;
JSON
{
  "hex": "#154271",
  "rgb": {
    "r": 21,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 210.652,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.37481,
    "c": 0.09411,
    "h": 252.6
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#154271
secondary
#A7723B
accent
#963CEB
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #154271

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

Preview Lab → · Contrast checker → · Palette generator →

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