#254985#254985

#254985 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.2% C 0.109 H 260.0°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#254985
RGBrgb(37, 73, 133)
HSLhsl(218, 56%, 33%)
HSVhsv(218, 72%, 52%)
CMYKcmyk(72.2%, 45.1%, 0%, 47.8%)
CIE-LABlab(31.47, 8.69, -37.48)
CIE-LCHlch(31.47, 38.47, 283.06°)
OKLaboklab(41.19% -0.0188 -0.1072)
OKLCHoklch(41.19% 0.109 260)
XYZxyz(7.3776, 6.8511, 23.1193)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254985 #856125
analogous
#257985 #254985 #312585
triadic
#254985 #852549 #498525
tetradic
#254985 #852579 #856125 #258531
square
#254985 #852579 #856125 #258531
split-complementary
#254985 #853125 #798525
monochromatic
#0A1425 #182F55 #254985 #3263B5 #5583D0

Accessibility & contrast

On white

8.86
#254985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#254985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254985
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254985#FFFFFF#000000##FFFFFF
##2549851.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4F87
Deuteranopia (green-blind)
#1B4684
Tritanopia (blue-blind)
#005760
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #254985;
/* rgb */ color: rgb(37, 73, 133);
/* oklch */ color: oklch(41.2% 0.109 260.0);
Tailwind
colors: {
  custom: {
    50: '#6c7ba9',
    500: '#254985',
    950: '#000000',
  },
}
SCSS
$custom: #254985;
$custom-light: #6c7ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#254985",
  "rgb": {
    "r": 37,
    "g": 73,
    "b": 133
  },
  "hsl": {
    "h": 217.5,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.41187,
    "c": 0.10882,
    "h": 260
  },
  "luminance": 0.06852
}

Semantic roles & 50–950 ramp

primary
#254985
secondary
#B48F52
accent
#A748E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254985

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

Preview Lab → · Contrast checker → · Palette generator →

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