#254D85#254D85

#254D85 is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.1% C 0.104 H 257.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#254D85
RGBrgb(37, 77, 133)
HSLhsl(215, 56%, 33%)
HSVhsv(215, 72%, 52%)
CMYKcmyk(72.2%, 42.1%, 0%, 47.8%)
CIE-LABlab(32.69, 6.01, -35.53)
CIE-LCHlch(32.69, 36.03, 279.60°)
OKLaboklab(42.13% -0.0229 -0.1014)
OKLCHoklch(42.13% 0.104 257.3)
XYZxyz(7.6489, 7.3937, 23.2098)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D85 #855D25
analogous
#257D85 #254D85 #2D2585
triadic
#254D85 #85254D #4D8525
tetradic
#254D85 #85257D #855D25 #25852D
square
#254D85 #85257D #855D25 #25852D
split-complementary
#254D85 #852D25 #7D8525
monochromatic
#0A1625 #183155 #254D85 #3269B5 #5588D0

Accessibility & contrast

On white

8.47
#254D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#254D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D85
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D85#FFFFFF#000000##FFFFFF
##254D851.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335287
Deuteranopia (green-blind)
#234984
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254d85;
/* rgb */ color: rgb(37, 77, 133);
/* oklch */ color: oklch(42.1% 0.104 257.3);
Tailwind
colors: {
  custom: {
    50: '#6c7ea9',
    500: '#254d85',
    950: '#000000',
  },
}
SCSS
$custom: #254d85;
$custom-light: #6c7ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#254d85",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 133
  },
  "hsl": {
    "h": 215,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42133,
    "c": 0.10392,
    "h": 257.3
  },
  "luminance": 0.07395
}

Semantic roles & 50–950 ramp

primary
#254D85
secondary
#B48B52
accent
#A148E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254D85

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

Preview Lab → · Contrast checker → · Palette generator →

#254D85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva