#254F8D#254F8D

#254F8D is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.113 H 258.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#254F8D
RGBrgb(37, 79, 141)
HSLhsl(216, 58%, 35%)
HSVhsv(216, 74%, 55%)
CMYKcmyk(73.8%, 44%, 0%, 44.7%)
CIE-LABlab(33.79, 7.79, -38.68)
CIE-LCHlch(33.79, 39.46, 281.39°)
OKLaboklab(43.15% -0.0231 -0.1106)
OKLCHoklch(43.15% 0.113 258.2)
XYZxyz(8.3649, 7.9075, 26.2796)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F8D #8D6325
analogous
#25838D #254F8D #2F258D
triadic
#254F8D #8D254F #4F8D25
tetradic
#254F8D #8D2583 #8D6325 #258D2F
square
#254F8D #8D2583 #8D6325 #258D2F
split-complementary
#254F8D #8D2F25 #838D25
monochromatic
#0C192C #18345D #254F8D #326ABD #598AD3

Accessibility & contrast

On white

8.13
#254F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#254F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F8D
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F8D#FFFFFF#000000##FFFFFF
##254F8D1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31558F
Deuteranopia (green-blind)
#1F4B8C
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254f8d;
/* rgb */ color: rgb(37, 79, 141);
/* oklch */ color: oklch(43.1% 0.113 258.2);
Tailwind
colors: {
  custom: {
    50: '#6e7faf',
    500: '#254f8d',
    950: '#000000',
  },
}
SCSS
$custom: #254f8d;
$custom-light: #6e7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#254f8d",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 215.769,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43147,
    "c": 0.11297,
    "h": 258.2
  },
  "luminance": 0.07908
}

Semantic roles & 50–950 ramp

primary
#254F8D
secondary
#B89056
accent
#A346E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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