#254A8B#254A8B

#254A8B is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.8% C 0.116 H 260.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#254A8B
RGBrgb(37, 74, 139)
HSLhsl(218, 58%, 35%)
HSVhsv(218, 73%, 55%)
CMYKcmyk(73.4%, 46.8%, 0%, 45.5%)
CIE-LABlab(32.16, 10.37, -40.07)
CIE-LCHlch(32.16, 41.39, 284.50°)
OKLaboklab(41.84% -0.0187 -0.1148)
OKLCHoklch(41.84% 0.116 260.8)
XYZxyz(7.8703, 7.1541, 25.3872)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A8B #8B6625
analogous
#257D8B #254A8B #33258B
triadic
#254A8B #8B254A #4A8B25
tetradic
#254A8B #8B257D #8B6625 #258B33
square
#254A8B #8B257D #8B6625 #258B33
split-complementary
#254A8B #8B3325 #7D8B25
monochromatic
#0B172A #18305B #254A8B #3264BB #5884D3

Accessibility & contrast

On white

8.64
#254A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254A8B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A8B#FFFFFF#000000##FFFFFF
##254A8B1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518D
Deuteranopia (green-blind)
#14478A
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #254a8b;
/* rgb */ color: rgb(37, 74, 139);
/* oklch */ color: oklch(41.8% 0.116 260.8);
Tailwind
colors: {
  custom: {
    50: '#6d7cad',
    500: '#254a8b',
    950: '#000000',
  },
}
SCSS
$custom: #254a8b;
$custom-light: #6d7cad;
$custom-dark: #000000;
JSON
{
  "hex": "#254a8b",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 139
  },
  "hsl": {
    "h": 218.235,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41844,
    "c": 0.11628,
    "h": 260.8
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#254A8B
secondary
#B79355
accent
#A947E1
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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