#254EA3#254EA3

#254EA3 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.145 H 262.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#254EA3
RGBrgb(37, 78, 163)
HSLhsl(220, 63%, 39%)
HSVhsv(220, 77%, 64%)
CMYKcmyk(77.3%, 52.1%, 0%, 36.1%)
CIE-LABlab(34.97, 17.08, -50.09)
CIE-LCHlch(34.97, 52.92, 288.83°)
OKLaboklab(44.53% -0.0186 -0.1442)
OKLCHoklch(44.53% 0.145 262.6)
XYZxyz(10.0958, 8.4853, 35.7490)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EA3 #A37A25
analogous
#258DA3 #254EA3 #3B25A3
triadic
#254EA3 #A3254E #4EA325
tetradic
#254EA3 #A3258D #A37A25 #25A33B
square
#254EA3 #A3258D #A37A25 #25A33B
split-complementary
#254EA3 #A33B25 #8DA325
monochromatic
#0E1E3F #1A3671 #254EA3 #3467D1 #668DDC

Accessibility & contrast

On white

7.79
#254EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#254EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EA3
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EA3#FFFFFF#000000##FFFFFF
##254EA31.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1658A6
Deuteranopia (green-blind)
#004DA1
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254ea3;
/* rgb */ color: rgb(37, 78, 163);
/* oklch */ color: oklch(44.5% 0.145 262.6);
Tailwind
colors: {
  custom: {
    50: '#737fbf',
    500: '#254ea3',
    950: '#000000',
  },
}
SCSS
$custom: #254ea3;
$custom-light: #737fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#254ea3",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 163
  },
  "hsl": {
    "h": 220.476,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4453,
    "c": 0.14536,
    "h": 262.6
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#254EA3
secondary
#C2A362
accent
#B142E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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