#254EA5#254EA5

#254EA5 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.148 H 262.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#254EA5
RGBrgb(37, 78, 165)
HSLhsl(221, 63%, 40%)
HSVhsv(221, 78%, 65%)
CMYKcmyk(77.6%, 52.7%, 0%, 35.3%)
CIE-LABlab(35.12, 17.86, -51.05)
CIE-LCHlch(35.12, 54.09, 289.28°)
OKLaboklab(44.69% -0.0184 -0.147)
OKLCHoklch(44.69% 0.148 262.9)
XYZxyz(10.2764, 8.5575, 36.7002)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EA5 #A57C25
analogous
#258EA5 #254EA5 #3C25A5
triadic
#254EA5 #A5254E #4EA525
tetradic
#254EA5 #A5258E #A57C25 #25A53C
square
#254EA5 #A5258E #A57C25 #25A53C
split-complementary
#254EA5 #A53C25 #8EA525
monochromatic
#0F1F41 #1A3673 #254EA5 #3568D2 #678DDD

Accessibility & contrast

On white

7.74
#254EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#254EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EA5
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EA5#FFFFFF#000000##FFFFFF
##254EA51.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254ea5;
/* rgb */ color: rgb(37, 78, 165);
/* oklch */ color: oklch(44.7% 0.148 262.9);
Tailwind
colors: {
  custom: {
    50: '#737fc0',
    500: '#254ea5',
    950: '#000000',
  },
}
SCSS
$custom: #254ea5;
$custom-light: #737fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254ea5",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 220.781,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44686,
    "c": 0.14815,
    "h": 262.9
  },
  "luminance": 0.08559
}

Semantic roles & 50–950 ramp

primary
#254EA5
secondary
#C3A463
accent
#B241E6
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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