#254F8A#254F8A

#254F8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.109 H 257.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#254F8A
RGBrgb(37, 79, 138)
HSLhsl(215, 58%, 34%)
HSVhsv(215, 73%, 54%)
CMYKcmyk(73.2%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.60, 6.63, -37.14)
CIE-LCHlch(33.60, 37.73, 280.12°)
OKLaboklab(42.94% -0.0237 -0.1061)
OKLCHoklch(42.94% 0.109 257.4)
XYZxyz(8.1447, 7.8194, 25.1199)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F8A #8A6025
analogous
#25818A #254F8A #2E258A
triadic
#254F8A #8A254F #4F8A25
tetradic
#254F8A #8A2581 #8A6025 #258A2E
square
#254F8A #8A2581 #8A6025 #258A2E
split-complementary
#254F8A #8A2E25 #818A25
monochromatic
#0B1829 #18335A #254F8A #326BBA #578AD2

Accessibility & contrast

On white

8.19
#254F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#254F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F8A
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F8A#FFFFFF#000000##FFFFFF
##254F8A1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548C
Deuteranopia (green-blind)
#224B89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254f8a;
/* rgb */ color: rgb(37, 79, 138);
/* oklch */ color: oklch(42.9% 0.109 257.4);
Tailwind
colors: {
  custom: {
    50: '#6d7fac',
    500: '#254f8a',
    950: '#000000',
  },
}
SCSS
$custom: #254f8a;
$custom-light: #6d7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#254f8a",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 215.05,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42943,
    "c": 0.10868,
    "h": 257.4
  },
  "luminance": 0.0782
}

Semantic roles & 50–950 ramp

primary
#254F8A
secondary
#B78E54
accent
#A147E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #254F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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