#254B8D#254B8D

#254B8D is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.2% C 0.118 H 260.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#254B8D
RGBrgb(37, 75, 141)
HSLhsl(218, 58%, 35%)
HSVhsv(218, 74%, 55%)
CMYKcmyk(73.8%, 46.8%, 0%, 44.7%)
CIE-LABlab(32.59, 10.47, -40.61)
CIE-LCHlch(32.59, 41.94, 284.46°)
OKLaboklab(42.22% -0.0193 -0.1163)
OKLCHoklch(42.22% 0.118 260.6)
XYZxyz(8.0850, 7.3477, 26.1863)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254B8D #8D6725
analogous
#257F8D #254B8D #33258D
triadic
#254B8D #8D254B #4B8D25
tetradic
#254B8D #8D257F #8D6725 #258D33
square
#254B8D #8D257F #8D6725 #258D33
split-complementary
#254B8D #8D3325 #7F8D25
monochromatic
#0C172C #18315D #254B8D #3265BD #5986D3

Accessibility & contrast

On white

8.50
#254B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#254B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254B8D
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254B8D#FFFFFF#000000##FFFFFF
##254B8D1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29528F
Deuteranopia (green-blind)
#13488C
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254b8d;
/* rgb */ color: rgb(37, 75, 141);
/* oklch */ color: oklch(42.2% 0.118 260.6);
Tailwind
colors: {
  custom: {
    50: '#6e7caf',
    500: '#254b8d',
    950: '#000000',
  },
}
SCSS
$custom: #254b8d;
$custom-light: #6e7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#254b8d",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 141
  },
  "hsl": {
    "h": 218.077,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42218,
    "c": 0.11791,
    "h": 260.6
  },
  "luminance": 0.07349
}

Semantic roles & 50–950 ramp

primary
#254B8D
secondary
#B89456
accent
#A946E2
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #254B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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