#254AA1#254AA1

#254AA1 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.5% C 0.148 H 263.9°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#254AA1
RGBrgb(37, 74, 161)
HSLhsl(222, 63%, 39%)
HSVhsv(222, 77%, 63%)
CMYKcmyk(77%, 54%, 0%, 36.9%)
CIE-LABlab(33.70, 18.99, -50.96)
CIE-LCHlch(33.70, 54.38, 290.44°)
OKLaboklab(43.51% -0.0156 -0.1468)
OKLCHoklch(43.51% 0.148 263.9)
XYZxyz(9.6425, 7.8630, 34.7208)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AA1 #A17C25
analogous
#2588A1 #254AA1 #3E25A1
triadic
#254AA1 #A1254A #4AA125
tetradic
#254AA1 #A12588 #A17C25 #25A13E
square
#254AA1 #A12588 #A17C25 #25A13E
split-complementary
#254AA1 #A13E25 #88A125
monochromatic
#0E1C3D #1A336F #254AA1 #3362D0 #6588DC

Accessibility & contrast

On white

8.16
#254AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AA1
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AA1#FFFFFF#000000##FFFFFF
##254AA11.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0655A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254aa1;
/* rgb */ color: rgb(37, 74, 161);
/* oklch */ color: oklch(43.5% 0.148 263.9);
Tailwind
colors: {
  custom: {
    50: '#727cbd',
    500: '#254aa1',
    950: '#000000',
  },
}
SCSS
$custom: #254aa1;
$custom-light: #727cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#254aa1",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 161
  },
  "hsl": {
    "h": 222.097,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43513,
    "c": 0.14763,
    "h": 263.9
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#254AA1
secondary
#C1A461
accent
#B542E6
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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