#254C97#254C97

#254C97 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.2% C 0.131 H 261.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#254C97
RGBrgb(37, 76, 151)
HSLhsl(219, 61%, 37%)
HSVhsv(219, 75%, 59%)
CMYKcmyk(75.5%, 49.7%, 0%, 40.8%)
CIE-LABlab(33.55, 13.72, -45.15)
CIE-LCHlch(33.55, 47.19, 286.91°)
OKLaboklab(43.18% -0.0185 -0.1297)
OKLCHoklch(43.18% 0.131 261.9)
XYZxyz(8.9313, 7.7956, 30.3061)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C97 #977025
analogous
#258597 #254C97 #372597
triadic
#254C97 #97254C #4C9725
tetradic
#254C97 #972585 #977025 #259737
square
#254C97 #972585 #977025 #259737
split-complementary
#254C97 #973725 #859725
monochromatic
#0D1B35 #193366 #254C97 #3165C8 #5F88D8

Accessibility & contrast

On white

8.21
#254C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#254C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C97
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C97#FFFFFF#000000##FFFFFF
##254C971.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21549A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254c97;
/* rgb */ color: rgb(37, 76, 151);
/* oklch */ color: oklch(43.2% 0.131 261.9);
Tailwind
colors: {
  custom: {
    50: '#707db6',
    500: '#254c97',
    950: '#000000',
  },
}
SCSS
$custom: #254c97;
$custom-light: #707db6;
$custom-dark: #000000;
JSON
{
  "hex": "#254c97",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 219.474,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43177,
    "c": 0.13098,
    "h": 261.9
  },
  "luminance": 0.07797
}

Semantic roles & 50–950 ramp

primary
#254C97
secondary
#BD9B5B
accent
#AD44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254C97

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

Preview Lab → · Contrast checker → · Palette generator →

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