#254179#254179

#254179 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.101 H 262.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#254179
RGBrgb(37, 65, 121)
HSLhsl(220, 53%, 31%)
HSVhsv(220, 69%, 47%)
CMYKcmyk(69.4%, 46.3%, 0%, 52.5%)
CIE-LABlab(28.26, 9.46, -35.13)
CIE-LCHlch(28.26, 36.38, 285.06°)
OKLaboklab(38.46% -0.013 -0.1004)
OKLCHoklch(38.46% 0.101 262.6)
XYZxyz(6.1032, 5.5538, 18.8358)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254179 #795D25
analogous
#256B79 #254179 #332579
triadic
#254179 #792541 #417925
tetradic
#254179 #79256B #795D25 #257933
square
#254179 #79256B #795D25 #257933
split-complementary
#254179 #793325 #6B7925
monochromatic
#080F1B #17284A #254179 #335AA8 #4F78C9

Accessibility & contrast

On white

9.95
#254179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#254179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254179
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254179#FFFFFF#000000##FFFFFF
##2541791.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477B
Deuteranopia (green-blind)
#173F78
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #254179;
/* rgb */ color: rgb(37, 65, 121);
/* oklch */ color: oklch(38.5% 0.101 262.6);
Tailwind
colors: {
  custom: {
    50: '#6a75a0',
    500: '#254179',
    950: '#000000',
  },
}
SCSS
$custom: #254179;
$custom-light: #6a75a0;
$custom-dark: #000000;
JSON
{
  "hex": "#254179",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 121
  },
  "hsl": {
    "h": 220,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38465,
    "c": 0.10125,
    "h": 262.6
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#254179
secondary
#AB8C4E
accent
#AC4BDD
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #254179

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

Preview Lab → · Contrast checker → · Palette generator →

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