#254071#254071

#254071 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.7% C 0.090 H 261.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#254071
RGBrgb(37, 64, 113)
HSLhsl(219, 51%, 29%)
HSVhsv(219, 67%, 44%)
CMYKcmyk(67.3%, 43.4%, 0%, 55.7%)
CIE-LABlab(27.44, 7.04, -31.38)
CIE-LCHlch(27.44, 32.16, 282.64°)
OKLaboklab(37.67% -0.0136 -0.0894)
OKLCHoklch(37.67% 0.09 261.4)
XYZxyz(5.5759, 5.2518, 16.3394)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254071 #715625
analogous
#256671 #254071 #302571
triadic
#254071 #712540 #407125
tetradic
#254071 #712566 #715625 #257130
square
#254071 #712566 #715625 #257130
split-complementary
#254071 #713025 #667125
monochromatic
#080D17 #162643 #254071 #345A9F #4C77C4

Accessibility & contrast

On white

10.24
#254071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254071
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254071#FFFFFF#000000##FFFFFF
##2540711.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4573
Deuteranopia (green-blind)
#1E3E70
Tritanopia (blue-blind)
#004B53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #254071;
/* rgb */ color: rgb(37, 64, 113);
/* oklch */ color: oklch(37.7% 0.090 261.4);
Tailwind
colors: {
  custom: {
    50: '#68749a',
    500: '#254071',
    950: '#000000',
  },
}
SCSS
$custom: #254071;
$custom-light: #68749a;
$custom-dark: #000000;
JSON
{
  "hex": "#254071",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 113
  },
  "hsl": {
    "h": 218.684,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3767,
    "c": 0.09044,
    "h": 261.4
  },
  "luminance": 0.05252
}

Semantic roles & 50–950 ramp

primary
#254071
secondary
#A4854E
accent
#A84EDA
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254071

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

Preview Lab → · Contrast checker → · Palette generator →

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