#254C8D#254C8D

#254C8D is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.4% C 0.117 H 260.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#254C8D
RGBrgb(37, 76, 141)
HSLhsl(218, 58%, 35%)
HSVhsv(218, 74%, 55%)
CMYKcmyk(73.8%, 46.1%, 0%, 44.7%)
CIE-LABlab(32.89, 9.80, -40.13)
CIE-LCHlch(32.89, 41.31, 283.73°)
OKLaboklab(42.45% -0.0202 -0.1149)
OKLCHoklch(42.45% 0.117 260)
XYZxyz(8.1534, 7.4844, 26.2091)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C8D #8D6625
analogous
#25808D #254C8D #32258D
triadic
#254C8D #8D254C #4C8D25
tetradic
#254C8D #8D2580 #8D6625 #258D32
square
#254C8D #8D2580 #8D6625 #258D32
split-complementary
#254C8D #8D3225 #808D25
monochromatic
#0C182C #18325D #254C8D #3266BD #5987D3

Accessibility & contrast

On white

8.41
#254C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#254C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C8D
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C8D#FFFFFF#000000##FFFFFF
##254C8D1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B528F
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254c8d;
/* rgb */ color: rgb(37, 76, 141);
/* oklch */ color: oklch(42.4% 0.117 260.0);
Tailwind
colors: {
  custom: {
    50: '#6e7daf',
    500: '#254c8d',
    950: '#000000',
  },
}
SCSS
$custom: #254c8d;
$custom-light: #6e7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#254c8d",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 217.5,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42449,
    "c": 0.11666,
    "h": 260
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#254C8D
secondary
#B89356
accent
#A746E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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