#254EA1#254EA1

#254EA1 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.143 H 262.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#254EA1
RGBrgb(37, 78, 161)
HSLhsl(220, 63%, 39%)
HSVhsv(220, 77%, 63%)
CMYKcmyk(77%, 51.6%, 0%, 36.9%)
CIE-LABlab(34.83, 16.30, -49.12)
CIE-LCHlch(34.83, 51.75, 288.36°)
OKLaboklab(44.38% -0.0188 -0.1413)
OKLCHoklch(44.38% 0.143 262.4)
XYZxyz(9.9181, 8.4142, 34.8127)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EA1 #A17825
analogous
#258CA1 #254EA1 #3A25A1
triadic
#254EA1 #A1254E #4EA125
tetradic
#254EA1 #A1258C #A17825 #25A13A
square
#254EA1 #A1258C #A17825 #25A13A
split-complementary
#254EA1 #A13A25 #8CA125
monochromatic
#0E1E3D #1A366F #254EA1 #3367D0 #658CDC

Accessibility & contrast

On white

7.83
#254EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#254EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EA1
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EA1#FFFFFF#000000##FFFFFF
##254EA11.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1958A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254ea1;
/* rgb */ color: rgb(37, 78, 161);
/* oklch */ color: oklch(44.4% 0.143 262.4);
Tailwind
colors: {
  custom: {
    50: '#727fbd',
    500: '#254ea1',
    950: '#000000',
  },
}
SCSS
$custom: #254ea1;
$custom-light: #727fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#254ea1",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 220.161,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44376,
    "c": 0.14257,
    "h": 262.4
  },
  "luminance": 0.08415
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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