#254EA2#254EA2

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

Color values

HEX#254EA2
RGBrgb(37, 78, 162)
HSLhsl(220, 63%, 39%)
HSVhsv(220, 77%, 64%)
CMYKcmyk(77.2%, 51.9%, 0%, 36.5%)
CIE-LABlab(34.90, 16.69, -49.60)
CIE-LCHlch(34.90, 52.34, 288.59°)
OKLaboklab(44.45% -0.0187 -0.1427)
OKLCHoklch(44.45% 0.144 262.5)
XYZxyz(10.0066, 8.4496, 35.2790)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EA2 #A27925
analogous
#258DA2 #254EA2 #3B25A2
triadic
#254EA2 #A2254E #4EA225
tetradic
#254EA2 #A2258D #A27925 #25A23B
square
#254EA2 #A2258D #A27925 #25A23B
split-complementary
#254EA2 #A23B25 #8DA225
monochromatic
#0E1E3E #1A3670 #254EA2 #3467D1 #658CDC

Accessibility & contrast

On white

7.81
#254EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#254EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EA2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EA2#FFFFFF#000000##FFFFFF
##254EA21.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254ea2;
/* rgb */ color: rgb(37, 78, 162);
/* oklch */ color: oklch(44.5% 0.144 262.5);
Tailwind
colors: {
  custom: {
    50: '#727fbe',
    500: '#254ea2',
    950: '#000000',
  },
}
SCSS
$custom: #254ea2;
$custom-light: #727fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#254ea2",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 220.32,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44453,
    "c": 0.14396,
    "h": 262.5
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

primary
#254EA2
secondary
#C2A261
accent
#B042E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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