#254A8D#254A8D

#254A8D is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.0% C 0.119 H 261.2°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#254A8D
RGBrgb(37, 74, 141)
HSLhsl(219, 58%, 35%)
HSVhsv(219, 74%, 55%)
CMYKcmyk(73.8%, 47.5%, 0%, 44.7%)
CIE-LABlab(32.29, 11.15, -41.09)
CIE-LCHlch(32.29, 42.57, 285.18°)
OKLaboklab(41.99% -0.0183 -0.1177)
OKLCHoklch(41.99% 0.119 261.2)
XYZxyz(8.0177, 7.2131, 26.1639)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A8D #8D6825
analogous
#257E8D #254A8D #34258D
triadic
#254A8D #8D254A #4A8D25
tetradic
#254A8D #8D257E #8D6825 #258D34
square
#254A8D #8D257E #8D6825 #258D34
split-complementary
#254A8D #8D3425 #7E8D25
monochromatic
#0C172C #18315D #254A8D #3263BD #5985D3

Accessibility & contrast

On white

8.60
#254A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#254A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A8D
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A8D#FFFFFF#000000##FFFFFF
##254A8D1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#10478C
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254a8d;
/* rgb */ color: rgb(37, 74, 141);
/* oklch */ color: oklch(42.0% 0.119 261.2);
Tailwind
colors: {
  custom: {
    50: '#6e7caf',
    500: '#254a8d',
    950: '#000000',
  },
}
SCSS
$custom: #254a8d;
$custom-light: #6e7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#254a8d",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 218.654,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41988,
    "c": 0.11917,
    "h": 261.2
  },
  "luminance": 0.07214
}

Semantic roles & 50–950 ramp

primary
#254A8D
secondary
#B89556
accent
#AA46E2
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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