#254497#254497

#254497 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.4% C 0.141 H 265.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#254497
RGBrgb(37, 68, 151)
HSLhsl(224, 61%, 37%)
HSVhsv(224, 75%, 59%)
CMYKcmyk(75.5%, 55%, 0%, 40.8%)
CIE-LABlab(31.26, 19.15, -48.86)
CIE-LCHlch(31.26, 52.48, 291.40°)
OKLaboklab(41.43% -0.0118 -0.1407)
OKLCHoklch(41.43% 0.141 265.2)
XYZxyz(8.4140, 6.7610, 30.1337)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254497 #977825
analogous
#257D97 #254497 #3F2597
triadic
#254497 #972544 #449725
tetradic
#254497 #97257D #977825 #25973F
square
#254497 #97257D #977825 #25973F
split-complementary
#254497 #973F25 #7D9725
monochromatic
#0D1835 #192E66 #254497 #315AC8 #5F80D8

Accessibility & contrast

On white

8.93
#254497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#254497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254497
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254497#FFFFFF#000000##FFFFFF
##2544971.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F9A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #254497;
/* rgb */ color: rgb(37, 68, 151);
/* oklch */ color: oklch(41.4% 0.141 265.2);
Tailwind
colors: {
  custom: {
    50: '#7077b6',
    500: '#254497',
    950: '#000000',
  },
}
SCSS
$custom: #254497;
$custom-light: #7077b6;
$custom-dark: #000000;
JSON
{
  "hex": "#254497",
  "rgb": {
    "r": 37,
    "g": 68,
    "b": 151
  },
  "hsl": {
    "h": 223.684,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41429,
    "c": 0.14122,
    "h": 265.2
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#254497
secondary
#BDA25B
accent
#B844E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #254497

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

Preview Lab → · Contrast checker → · Palette generator →

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