#254AA6#254AA6

#254AA6 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.9% C 0.155 H 264.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#254AA6
RGBrgb(37, 74, 166)
HSLhsl(223, 64%, 40%)
HSVhsv(223, 78%, 65%)
CMYKcmyk(77.7%, 55.4%, 0%, 34.9%)
CIE-LABlab(34.07, 20.94, -53.35)
CIE-LCHlch(34.07, 57.31, 291.43°)
OKLaboklab(43.92% -0.0152 -0.1538)
OKLCHoklch(43.92% 0.155 264.4)
XYZxyz(10.0922, 8.0429, 37.0895)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AA6 #A68125
analogous
#258AA6 #254AA6 #4125A6
triadic
#254AA6 #A6254A #4AA625
tetradic
#254AA6 #A6258A #A68125 #25A641
square
#254AA6 #A6258A #A68125 #25A641
split-complementary
#254AA6 #A64125 #8AA625
monochromatic
#0F1D42 #1A3474 #254AA6 #3663D2 #688ADD

Accessibility & contrast

On white

8.05
#254AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#254AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AA6
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AA6#FFFFFF#000000##FFFFFF
##254AA61.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254aa6;
/* rgb */ color: rgb(37, 74, 166);
/* oklch */ color: oklch(43.9% 0.155 264.4);
Tailwind
colors: {
  custom: {
    50: '#747cc1',
    500: '#254aa6',
    950: '#000000',
  },
}
SCSS
$custom: #254aa6;
$custom-light: #747cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#254aa6",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 222.791,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43917,
    "c": 0.15458,
    "h": 264.4
  },
  "luminance": 0.08044
}

Semantic roles & 50–950 ramp

primary
#254AA6
secondary
#C3A864
accent
#B741E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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