#254AA7#254AA7

#254AA7 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.156 H 264.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#254AA7
RGBrgb(37, 74, 167)
HSLhsl(223, 64%, 40%)
HSVhsv(223, 78%, 65%)
CMYKcmyk(77.8%, 55.7%, 0%, 34.5%)
CIE-LABlab(34.15, 21.33, -53.82)
CIE-LCHlch(34.15, 57.89, 291.62°)
OKLaboklab(44% -0.0151 -0.1552)
OKLCHoklch(44% 0.156 264.4)
XYZxyz(10.1843, 8.0797, 37.5745)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AA7 #A78225
analogous
#258BA7 #254AA7 #4125A7
triadic
#254AA7 #A7254A #4AA725
tetradic
#254AA7 #A7258B #A78225 #25A741
square
#254AA7 #A7258B #A78225 #25A741
split-complementary
#254AA7 #A74125 #8BA725
monochromatic
#0F1E43 #1A3475 #254AA7 #3763D3 #698ADE

Accessibility & contrast

On white

8.03
#254AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#254AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AA7
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AA7#FFFFFF#000000##FFFFFF
##254AA71.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254aa7;
/* rgb */ color: rgb(37, 74, 167);
/* oklch */ color: oklch(44.0% 0.156 264.4);
Tailwind
colors: {
  custom: {
    50: '#747cc2',
    500: '#254aa7',
    950: '#000000',
  },
}
SCSS
$custom: #254aa7;
$custom-light: #747cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#254aa7",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 167
  },
  "hsl": {
    "h": 222.923,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.43998,
    "c": 0.15596,
    "h": 264.4
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#254AA7
secondary
#C4A864
accent
#B841E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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