#254A8A#254A8A

#254A8A is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.115 H 260.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#254A8A
RGBrgb(37, 74, 138)
HSLhsl(218, 58%, 34%)
HSVhsv(218, 73%, 54%)
CMYKcmyk(73.2%, 46.4%, 0%, 45.9%)
CIE-LABlab(32.09, 9.97, -39.56)
CIE-LCHlch(32.09, 40.80, 284.15°)
OKLaboklab(41.77% -0.0189 -0.1133)
OKLCHoklch(41.77% 0.115 260.5)
XYZxyz(7.7975, 7.1250, 25.0042)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A8A #8A6525
analogous
#257D8A #254A8A #33258A
triadic
#254A8A #8A254A #4A8A25
tetradic
#254A8A #8A257D #8A6525 #258A33
square
#254A8A #8A257D #8A6525 #258A33
split-complementary
#254A8A #8A3325 #7D8A25
monochromatic
#0B1629 #18305A #254A8A #3264BA #5784D2

Accessibility & contrast

On white

8.66
#254A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#254A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A8A
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A8A#FFFFFF#000000##FFFFFF
##254A8A1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A508C
Deuteranopia (green-blind)
#164789
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254a8a;
/* rgb */ color: rgb(37, 74, 138);
/* oklch */ color: oklch(41.8% 0.115 260.5);
Tailwind
colors: {
  custom: {
    50: '#6d7cac',
    500: '#254a8a',
    950: '#000000',
  },
}
SCSS
$custom: #254a8a;
$custom-light: #6d7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#254a8a",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 218.02,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41773,
    "c": 0.11483,
    "h": 260.5
  },
  "luminance": 0.07126
}

Semantic roles & 50–950 ramp

primary
#254A8A
secondary
#B79354
accent
#A847E1
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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