#254173#254173

#254173 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.092 H 261.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#254173
RGBrgb(37, 65, 115)
HSLhsl(218, 51%, 30%)
HSVhsv(218, 68%, 45%)
CMYKcmyk(67.8%, 43.5%, 0%, 54.9%)
CIE-LABlab(27.88, 7.13, -31.96)
CIE-LCHlch(27.88, 32.74, 282.57°)
OKLaboklab(38.05% -0.0143 -0.0911)
OKLCHoklch(38.05% 0.092 261.1)
XYZxyz(5.7467, 5.4112, 16.9579)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254173 #735725
analogous
#256873 #254173 #302573
triadic
#254173 #732541 #417325
tetradic
#254173 #732568 #735725 #257330
square
#254173 #732568 #735725 #257330
split-complementary
#254173 #733025 #687325
monochromatic
#070D17 #162745 #254173 #345BA1 #4D78C6

Accessibility & contrast

On white

10.08
#254173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#254173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254173
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254173#FFFFFF#000000##FFFFFF
##2541731.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4675
Deuteranopia (green-blind)
#1E3E72
Tritanopia (blue-blind)
#004C54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #254173;
/* rgb */ color: rgb(37, 65, 115);
/* oklch */ color: oklch(38.0% 0.092 261.1);
Tailwind
colors: {
  custom: {
    50: '#68759b',
    500: '#254173',
    950: '#000000',
  },
}
SCSS
$custom: #254173;
$custom-light: #68759b;
$custom-dark: #000000;
JSON
{
  "hex": "#254173",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 115
  },
  "hsl": {
    "h": 218.462,
    "s": 51.316,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38046,
    "c": 0.09219,
    "h": 261.1
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#254173
secondary
#A6864E
accent
#A84DDB
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254173

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

Preview Lab → · Contrast checker → · Palette generator →

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