#254AA4#254AA4

#254AA4 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.8% C 0.152 H 264.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#254AA4
RGBrgb(37, 74, 164)
HSLhsl(223, 63%, 39%)
HSVhsv(223, 77%, 64%)
CMYKcmyk(77.4%, 54.9%, 0%, 35.7%)
CIE-LABlab(33.92, 20.16, -52.39)
CIE-LCHlch(33.92, 56.14, 291.05°)
OKLaboklab(43.75% -0.0154 -0.151)
OKLCHoklch(43.75% 0.152 264.2)
XYZxyz(9.9102, 7.9701, 36.1308)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AA4 #A47F25
analogous
#258AA4 #254AA4 #4025A4
triadic
#254AA4 #A4254A #4AA425
tetradic
#254AA4 #A4258A #A47F25 #25A440
square
#254AA4 #A4258A #A47F25 #25A440
split-complementary
#254AA4 #A44025 #8AA425
monochromatic
#0E1D40 #1A3372 #254AA4 #3562D1 #6789DD

Accessibility & contrast

On white

8.09
#254AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#254AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AA4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AA4#FFFFFF#000000##FFFFFF
##254AA41.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254aa4;
/* rgb */ color: rgb(37, 74, 164);
/* oklch */ color: oklch(43.8% 0.152 264.2);
Tailwind
colors: {
  custom: {
    50: '#737cc0',
    500: '#254aa4',
    950: '#000000',
  },
}
SCSS
$custom: #254aa4;
$custom-light: #737cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254aa4",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 222.52,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43754,
    "c": 0.1518,
    "h": 264.2
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#254AA4
secondary
#C2A662
accent
#B642E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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