#254D8F#254D8F

#254D8F is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.118 H 259.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#254D8F
RGBrgb(37, 77, 143)
HSLhsl(217, 59%, 35%)
HSVhsv(217, 74%, 56%)
CMYKcmyk(74.1%, 46.2%, 0%, 43.9%)
CIE-LABlab(33.31, 9.91, -40.66)
CIE-LCHlch(33.31, 41.85, 283.70°)
OKLaboklab(42.82% -0.0208 -0.1164)
OKLCHoklch(42.82% 0.118 259.9)
XYZxyz(8.3730, 7.6833, 27.0230)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D8F #8F6725
analogous
#25828F #254D8F #32258F
triadic
#254D8F #8F254D #4D8F25
tetradic
#254D8F #8F2582 #8F6725 #258F32
square
#254D8F #8F2582 #8F6725 #258F32
split-complementary
#254D8F #8F3225 #828F25
monochromatic
#0C192E #18335E #254D8F #3267C0 #5A88D4

Accessibility & contrast

On white

8.28
#254D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#254D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D8F
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D8F#FFFFFF#000000##FFFFFF
##254D8F1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5492
Deuteranopia (green-blind)
#164A8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254d8f;
/* rgb */ color: rgb(37, 77, 143);
/* oklch */ color: oklch(42.8% 0.118 259.9);
Tailwind
colors: {
  custom: {
    50: '#6e7eb0',
    500: '#254d8f',
    950: '#000000',
  },
}
SCSS
$custom: #254d8f;
$custom-light: #6e7eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#254d8f",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 143
  },
  "hsl": {
    "h": 217.358,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42821,
    "c": 0.11829,
    "h": 259.9
  },
  "luminance": 0.07684
}

Semantic roles & 50–950 ramp

primary
#254D8F
secondary
#B99457
accent
#A746E2
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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