#254871#254871

#254871 is a dark, moderate cyan. Relative luminance 0.062; OKLCH L 39.6% C 0.081 H 253.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#254871
RGBrgb(37, 72, 113)
HSLhsl(212, 51%, 29%)
HSVhsv(212, 67%, 44%)
CMYKcmyk(67.3%, 36.3%, 0%, 55.7%)
CIE-LABlab(29.96, 1.64, -27.39)
CIE-LCHlch(29.96, 27.44, 273.43°)
OKLaboklab(39.63% -0.0227 -0.0776)
OKLCHoklch(39.63% 0.081 253.7)
XYZxyz(6.0599, 6.2197, 16.5008)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254871 #714E25
analogous
#256E71 #254871 #282571
triadic
#254871 #712548 #487125
tetradic
#254871 #71256E #714E25 #257128
square
#254871 #71256E #714E25 #257128
split-complementary
#254871 #712825 #6E7125
monochromatic
#080F17 #162B43 #254871 #34659F #4C83C4

Accessibility & contrast

On white

9.36
#254871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#254871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254871
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254871#FFFFFF#000000##FFFFFF
##2548711.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B73
Deuteranopia (green-blind)
#2C4370
Tritanopia (blue-blind)
#005157
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #254871;
/* rgb */ color: rgb(37, 72, 113);
/* oklch */ color: oklch(39.6% 0.081 253.7);
Tailwind
colors: {
  custom: {
    50: '#687a9a',
    500: '#254871',
    950: '#000000',
  },
}
SCSS
$custom: #254871;
$custom-light: #687a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#254871",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 212.368,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39629,
    "c": 0.08086,
    "h": 253.7
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#254871
secondary
#A47C4E
accent
#994EDA
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #254871

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

Preview Lab → · Contrast checker → · Palette generator →

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