#254888#254888

#254888 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.114 H 261.3°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#254888
RGBrgb(37, 72, 136)
HSLhsl(219, 57%, 34%)
HSVhsv(219, 73%, 53%)
CMYKcmyk(72.8%, 47.1%, 0%, 46.7%)
CIE-LABlab(31.36, 10.54, -39.50)
CIE-LCHlch(31.36, 40.89, 284.95°)
OKLaboklab(41.17% -0.0173 -0.1131)
OKLCHoklch(41.17% 0.114 261.3)
XYZxyz(7.5227, 6.8048, 24.2048)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254888 #886525
analogous
#257A88 #254888 #342588
triadic
#254888 #882548 #488825
tetradic
#254888 #88257A #886525 #258834
square
#254888 #88257A #886525 #258834
split-complementary
#254888 #883425 #7A8825
monochromatic
#0B1528 #182F58 #254888 #3261B8 #5682D1

Accessibility & contrast

On white

8.89
#254888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#254888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254888
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254888#FFFFFF#000000##FFFFFF
##2548881.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274F8A
Deuteranopia (green-blind)
#134687
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #254888;
/* rgb */ color: rgb(37, 72, 136);
/* oklch */ color: oklch(41.2% 0.114 261.3);
Tailwind
colors: {
  custom: {
    50: '#6d7aab',
    500: '#254888',
    950: '#000000',
  },
}
SCSS
$custom: #254888;
$custom-light: #6d7aab;
$custom-dark: #000000;
JSON
{
  "hex": "#254888",
  "rgb": {
    "r": 37,
    "g": 72,
    "b": 136
  },
  "hsl": {
    "h": 218.788,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41168,
    "c": 0.11445,
    "h": 261.3
  },
  "luminance": 0.06806
}

Semantic roles & 50–950 ramp

primary
#254888
secondary
#B69353
accent
#AA47E0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #254888

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

Preview Lab → · Contrast checker → · Palette generator →

#254888 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva