#254882#254882

#254882 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.106 H 259.9°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#254882
RGBrgb(37, 72, 130)
HSLhsl(217, 56%, 33%)
HSVhsv(217, 72%, 51%)
CMYKcmyk(71.5%, 44.6%, 0%, 49%)
CIE-LABlab(30.97, 8.20, -36.41)
CIE-LCHlch(30.97, 37.33, 282.69°)
OKLaboklab(40.74% -0.0185 -0.104)
OKLCHoklch(40.74% 0.106 259.9)
XYZxyz(7.1081, 6.6390, 22.0216)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254882 #825F25
analogous
#257782 #254882 #302582
triadic
#254882 #822548 #488225
tetradic
#254882 #822577 #825F25 #258230
square
#254882 #822577 #825F25 #258230
split-complementary
#254882 #823025 #778225
monochromatic
#0A1323 #172E52 #254882 #3362B2 #5382CE

Accessibility & contrast

On white

9.02
#254882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#254882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254882
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254882#FFFFFF#000000##FFFFFF
##2548821.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4E84
Deuteranopia (green-blind)
#1C4581
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254882;
/* rgb */ color: rgb(37, 72, 130);
/* oklch */ color: oklch(40.7% 0.106 259.9);
Tailwind
colors: {
  custom: {
    50: '#6b7aa7',
    500: '#254882',
    950: '#000000',
  },
}
SCSS
$custom: #254882;
$custom-light: #6b7aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#254882",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 130
  },
  "hsl": {
    "h": 217.419,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.10567,
    "h": 259.9
  },
  "luminance": 0.0664
}

Semantic roles & 50–950 ramp

primary
#254882
secondary
#B28E50
accent
#A649DF
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #254882

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

Preview Lab → · Contrast checker → · Palette generator →

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