#254EA8#254EA8

#254EA8 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.152 H 263.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#254EA8
RGBrgb(37, 78, 168)
HSLhsl(221, 64%, 40%)
HSVhsv(221, 78%, 66%)
CMYKcmyk(78%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.34, 19.03, -52.49)
CIE-LCHlch(35.34, 55.83, 289.93°)
OKLaboklab(44.92% -0.0181 -0.1512)
OKLCHoklch(44.92% 0.152 263.2)
XYZxyz(10.5527, 8.6680, 38.1551)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EA8 #A87F25
analogous
#2590A8 #254EA8 #3D25A8
triadic
#254EA8 #A8254E #4EA825
tetradic
#254EA8 #A82590 #A87F25 #25A83D
square
#254EA8 #A82590 #A87F25 #25A83D
split-complementary
#254EA8 #A83D25 #90A825
monochromatic
#0F1F44 #1A3776 #254EA8 #3768D3 #698EDE

Accessibility & contrast

On white

7.68
#254EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#254EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EA8
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EA8#FFFFFF#000000##FFFFFF
##254EA81.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0959AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254ea8;
/* rgb */ color: rgb(37, 78, 168);
/* oklch */ color: oklch(44.9% 0.152 263.2);
Tailwind
colors: {
  custom: {
    50: '#747fc2',
    500: '#254ea8',
    950: '#000000',
  },
}
SCSS
$custom: #254ea8;
$custom-light: #747fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#254ea8",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 221.221,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44922,
    "c": 0.15231,
    "h": 263.2
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

primary
#254EA8
secondary
#C4A665
accent
#B341E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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