#254D88#254D88

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

Color values

HEX#254D88
RGBrgb(37, 77, 136)
HSLhsl(216, 57%, 34%)
HSVhsv(216, 73%, 53%)
CMYKcmyk(72.8%, 43.4%, 0%, 46.7%)
CIE-LABlab(32.87, 7.18, -37.08)
CIE-LCHlch(32.87, 37.77, 280.96°)
OKLaboklab(42.34% -0.0222 -0.1059)
OKLCHoklch(42.34% 0.108 258.2)
XYZxyz(7.8591, 7.4778, 24.3169)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D88 #886025
analogous
#257F88 #254D88 #2F2588
triadic
#254D88 #88254D #4D8825
tetradic
#254D88 #88257F #886025 #25882F
square
#254D88 #88257F #886025 #25882F
split-complementary
#254D88 #882F25 #7F8825
monochromatic
#0B1728 #183258 #254D88 #3268B8 #5688D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##254D88#FFFFFF#000000##FFFFFF
##254D881.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)
#31528A
Deuteranopia (green-blind)
#204987
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #254d88;
/* rgb */ color: rgb(37, 77, 136);
/* oklch */ color: oklch(42.3% 0.108 258.2);
Tailwind
colors: {
  custom: {
    50: '#6d7eab',
    500: '#254d88',
    950: '#000000',
  },
}
SCSS
$custom: #254d88;
$custom-light: #6d7eab;
$custom-dark: #000000;
JSON
{
  "hex": "#254d88",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 136
  },
  "hsl": {
    "h": 215.758,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42335,
    "c": 0.10823,
    "h": 258.2
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#254D88
secondary
#B68E53
accent
#A347E0
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254D88

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

Preview Lab → · Contrast checker → · Palette generator →

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