#254980#254980

#254980 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.102 H 258.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#254980
RGBrgb(37, 73, 128)
HSLhsl(216, 55%, 32%)
HSVhsv(216, 71%, 50%)
CMYKcmyk(71.1%, 43%, 0%, 49.8%)
CIE-LABlab(31.15, 6.74, -34.88)
CIE-LCHlch(31.15, 35.53, 280.94°)
OKLaboklab(40.84% -0.0199 -0.0995)
OKLCHoklch(40.84% 0.102 258.7)
XYZxyz(7.0404, 6.7162, 21.3432)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254980 #805C25
analogous
#257780 #254980 #2F2580
triadic
#254980 #802549 #498025
tetradic
#254980 #802577 #805C25 #25802F
square
#254980 #802577 #805C25 #25802F
split-complementary
#254980 #802F25 #778025
monochromatic
#0A1321 #172E51 #254980 #3364AF #5283CD

Accessibility & contrast

On white

8.96
#254980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#254980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254980
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254980#FFFFFF#000000##FFFFFF
##2549801.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4E82
Deuteranopia (green-blind)
#21457F
Tritanopia (blue-blind)
#00565E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #254980;
/* rgb */ color: rgb(37, 73, 128);
/* oklch */ color: oklch(40.8% 0.102 258.7);
Tailwind
colors: {
  custom: {
    50: '#6b7ba5',
    500: '#254980',
    950: '#000000',
  },
}
SCSS
$custom: #254980;
$custom-light: #6b7ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#254980",
  "rgb": {
    "r": 37,
    "g": 73,
    "b": 128
  },
  "hsl": {
    "h": 216.264,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40843,
    "c": 0.10151,
    "h": 258.7
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#254980
secondary
#B18B50
accent
#A349DE
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #254980

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

Preview Lab → · Contrast checker → · Palette generator →

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