#254178#254178

#254178 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.100 H 262.4°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#254178
RGBrgb(37, 65, 120)
HSLhsl(220, 53%, 31%)
HSVhsv(220, 69%, 47%)
CMYKcmyk(69.2%, 45.8%, 0%, 52.9%)
CIE-LABlab(28.19, 9.07, -34.61)
CIE-LCHlch(28.19, 35.78, 284.68°)
OKLaboklab(38.39% -0.0132 -0.0989)
OKLCHoklch(38.39% 0.1 262.4)
XYZxyz(6.0422, 5.5294, 18.5145)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254178 #785C25
analogous
#256A78 #254178 #322578
triadic
#254178 #782541 #417825
tetradic
#254178 #78256A #785C25 #257832
square
#254178 #78256A #785C25 #257832
split-complementary
#254178 #783225 #6A7825
monochromatic
#080E1A #172849 #254178 #335AA7 #4F78C9

Accessibility & contrast

On white

9.97
#254178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254178
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254178#FFFFFF#000000##FFFFFF
##2541781.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27477A
Deuteranopia (green-blind)
#193F77
Tritanopia (blue-blind)
#004E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #254178;
/* rgb */ color: rgb(37, 65, 120);
/* oklch */ color: oklch(38.4% 0.100 262.4);
Tailwind
colors: {
  custom: {
    50: '#69759f',
    500: '#254178',
    950: '#000000',
  },
}
SCSS
$custom: #254178;
$custom-light: #69759f;
$custom-dark: #000000;
JSON
{
  "hex": "#254178",
  "rgb": {
    "r": 37,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 219.759,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38394,
    "c": 0.09974,
    "h": 262.4
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#254178
secondary
#AA8B4E
accent
#AB4CDC
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #254178

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

Preview Lab → · Contrast checker → · Palette generator →

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