#254D8D#254D8D

#254D8D is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.115 H 259.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#254D8D
RGBrgb(37, 77, 141)
HSLhsl(217, 58%, 35%)
HSVhsv(217, 74%, 55%)
CMYKcmyk(73.8%, 45.4%, 0%, 44.7%)
CIE-LABlab(33.19, 9.13, -39.65)
CIE-LCHlch(33.19, 40.68, 282.97°)
OKLaboklab(42.68% -0.0212 -0.1135)
OKLCHoklch(42.68% 0.115 259.4)
XYZxyz(8.2228, 7.6233, 26.2322)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D8D #8D6525
analogous
#25818D #254D8D #31258D
triadic
#254D8D #8D254D #4D8D25
tetradic
#254D8D #8D2581 #8D6525 #258D31
square
#254D8D #8D2581 #8D6525 #258D31
split-complementary
#254D8D #8D3125 #818D25
monochromatic
#0C182C #18335D #254D8D #3267BD #5988D3

Accessibility & contrast

On white

8.32
#254D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#254D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D8D
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D8D#FFFFFF#000000##FFFFFF
##254D8D1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D538F
Deuteranopia (green-blind)
#194A8C
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254d8d;
/* rgb */ color: rgb(37, 77, 141);
/* oklch */ color: oklch(42.7% 0.115 259.4);
Tailwind
colors: {
  custom: {
    50: '#6e7eaf',
    500: '#254d8d',
    950: '#000000',
  },
}
SCSS
$custom: #254d8d;
$custom-light: #6e7eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#254d8d",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 141
  },
  "hsl": {
    "h": 216.923,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4268,
    "c": 0.11542,
    "h": 259.4
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#254D8D
secondary
#B89256
accent
#A646E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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