#254EA6#254EA6

#254EA6 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.8% C 0.150 H 263.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#254EA6
RGBrgb(37, 78, 166)
HSLhsl(221, 64%, 40%)
HSVhsv(221, 78%, 65%)
CMYKcmyk(77.7%, 53%, 0%, 34.9%)
CIE-LABlab(35.19, 18.25, -51.53)
CIE-LCHlch(35.19, 54.67, 289.50°)
OKLaboklab(44.76% -0.0183 -0.1484)
OKLCHoklch(44.76% 0.15 263)
XYZxyz(10.3678, 8.5941, 37.1814)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EA6 #A67D25
analogous
#258FA6 #254EA6 #3C25A6
triadic
#254EA6 #A6254E #4EA625
tetradic
#254EA6 #A6258F #A67D25 #25A63C
square
#254EA6 #A6258F #A67D25 #25A63C
split-complementary
#254EA6 #A63C25 #8FA625
monochromatic
#0F1F42 #1A3674 #254EA6 #3668D2 #688DDD

Accessibility & contrast

On white

7.72
#254EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#254EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EA6
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EA6#FFFFFF#000000##FFFFFF
##254EA61.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F59A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254ea6;
/* rgb */ color: rgb(37, 78, 166);
/* oklch */ color: oklch(44.8% 0.150 263.0);
Tailwind
colors: {
  custom: {
    50: '#737fc1',
    500: '#254ea6',
    950: '#000000',
  },
}
SCSS
$custom: #254ea6;
$custom-light: #737fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#254ea6",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 220.93,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.14954,
    "h": 263
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#254EA6
secondary
#C3A564
accent
#B241E7
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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