#254E9F#254E9F

#254E9F is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.140 H 262.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#254E9F
RGBrgb(37, 78, 159)
HSLhsl(220, 62%, 38%)
HSVhsv(220, 77%, 62%)
CMYKcmyk(76.7%, 50.9%, 0%, 37.6%)
CIE-LABlab(34.69, 15.51, -48.15)
CIE-LCHlch(34.69, 50.58, 287.86°)
OKLaboklab(44.22% -0.0191 -0.1384)
OKLCHoklch(44.22% 0.14 262.1)
XYZxyz(9.7431, 8.3442, 33.8913)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254E9F #9F7625
analogous
#258B9F #254E9F #39259F
triadic
#254E9F #9F254E #4E9F25
tetradic
#254E9F #9F258B #9F7625 #259F39
square
#254E9F #9F258B #9F7625 #259F39
split-complementary
#254E9F #9F3925 #8B9F25
monochromatic
#0E1D3C #19366D #254E9F #3267CF #648CDB

Accessibility & contrast

On white

7.87
#254E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#254E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254E9F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254E9F#FFFFFF#000000##FFFFFF
##254E9F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D57A2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254e9f;
/* rgb */ color: rgb(37, 78, 159);
/* oklch */ color: oklch(44.2% 0.140 262.1);
Tailwind
colors: {
  custom: {
    50: '#727fbc',
    500: '#254e9f',
    950: '#000000',
  },
}
SCSS
$custom: #254e9f;
$custom-light: #727fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#254e9f",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 219.836,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44223,
    "c": 0.13976,
    "h": 262.1
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#254E9F
secondary
#C0A05F
accent
#AF42E5
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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