#254498#254498

#254498 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.5% C 0.143 H 265.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#254498
RGBrgb(37, 68, 152)
HSLhsl(224, 61%, 37%)
HSVhsv(224, 76%, 60%)
CMYKcmyk(75.7%, 55.3%, 0%, 40.4%)
CIE-LABlab(31.33, 19.54, -49.34)
CIE-LCHlch(31.33, 53.07, 291.60°)
OKLaboklab(41.51% -0.0117 -0.1422)
OKLCHoklch(41.51% 0.143 265.3)
XYZxyz(8.4956, 6.7936, 30.5632)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254498 #987925
analogous
#257E98 #254498 #3F2598
triadic
#254498 #982544 #449825
tetradic
#254498 #98257E #987925 #25983F
square
#254498 #98257E #987925 #25983F
split-complementary
#254498 #983F25 #7E9825
monochromatic
#0D1836 #192E67 #254498 #315AC9 #5F80D8

Accessibility & contrast

On white

8.90
#254498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254498
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254498#FFFFFF#000000##FFFFFF
##2544981.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #254498;
/* rgb */ color: rgb(37, 68, 152);
/* oklch */ color: oklch(41.5% 0.143 265.3);
Tailwind
colors: {
  custom: {
    50: '#7177b7',
    500: '#254498',
    950: '#000000',
  },
}
SCSS
$custom: #254498;
$custom-light: #7177b7;
$custom-dark: #000000;
JSON
{
  "hex": "#254498",
  "rgb": {
    "r": 37,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 223.826,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4151,
    "c": 0.14264,
    "h": 265.3
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#254498
secondary
#BDA35C
accent
#B944E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254498

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

Preview Lab → · Contrast checker → · Palette generator →

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