#254F8B#254F8B

#254F8B is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.110 H 257.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#254F8B
RGBrgb(37, 79, 139)
HSLhsl(215, 58%, 35%)
HSVhsv(215, 73%, 55%)
CMYKcmyk(73.4%, 43.2%, 0%, 45.5%)
CIE-LABlab(33.67, 7.01, -37.65)
CIE-LCHlch(33.67, 38.30, 280.55°)
OKLaboklab(43.01% -0.0235 -0.1076)
OKLCHoklch(43.01% 0.11 257.7)
XYZxyz(8.2174, 7.8485, 25.5029)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F8B #8B6125
analogous
#25828B #254F8B #2E258B
triadic
#254F8B #8B254F #4F8B25
tetradic
#254F8B #8B2582 #8B6125 #258B2E
square
#254F8B #8B2582 #8B6125 #258B2E
split-complementary
#254F8B #8B2E25 #828B25
monochromatic
#0B182A #18345B #254F8B #326ABB #588AD3

Accessibility & contrast

On white

8.17
#254F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F8B
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F8B#FFFFFF#000000##FFFFFF
##254F8B1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254f8b;
/* rgb */ color: rgb(37, 79, 139);
/* oklch */ color: oklch(43.0% 0.110 257.7);
Tailwind
colors: {
  custom: {
    50: '#6d7fad',
    500: '#254f8b',
    950: '#000000',
  },
}
SCSS
$custom: #254f8b;
$custom-light: #6d7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#254f8b",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 139
  },
  "hsl": {
    "h": 215.294,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43011,
    "c": 0.11011,
    "h": 257.7
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#254F8B
secondary
#B78F55
accent
#A247E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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