#254C8B#254C8B

#254C8B is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.3% C 0.114 H 259.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#254C8B
RGBrgb(37, 76, 139)
HSLhsl(217, 58%, 35%)
HSVhsv(217, 73%, 55%)
CMYKcmyk(73.4%, 45.3%, 0%, 45.5%)
CIE-LABlab(32.76, 9.02, -39.11)
CIE-LCHlch(32.76, 40.13, 282.99°)
OKLaboklab(42.31% -0.0206 -0.1119)
OKLCHoklch(42.31% 0.114 259.6)
XYZxyz(8.0059, 7.4254, 25.4324)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C8B #8B6425
analogous
#257F8B #254C8B #31258B
triadic
#254C8B #8B254C #4C8B25
tetradic
#254C8B #8B257F #8B6425 #258B31
square
#254C8B #8B257F #8B6425 #258B31
split-complementary
#254C8B #8B3125 #7F8B25
monochromatic
#0B172A #18325B #254C8B #3266BB #5887D3

Accessibility & contrast

On white

8.45
#254C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#254C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C8B
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C8B#FFFFFF#000000##FFFFFF
##254C8B1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D528D
Deuteranopia (green-blind)
#1A498A
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254c8b;
/* rgb */ color: rgb(37, 76, 139);
/* oklch */ color: oklch(42.3% 0.114 259.6);
Tailwind
colors: {
  custom: {
    50: '#6d7dad',
    500: '#254c8b',
    950: '#000000',
  },
}
SCSS
$custom: #254c8b;
$custom-light: #6d7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#254c8b",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 217.059,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.11378,
    "h": 259.6
  },
  "luminance": 0.07426
}

Semantic roles & 50–950 ramp

primary
#254C8B
secondary
#B79155
accent
#A647E1
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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