#254AAC#254AAC

#254AAC is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.4% C 0.163 H 264.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#254AAC
RGBrgb(37, 74, 172)
HSLhsl(224, 65%, 41%)
HSVhsv(224, 78%, 67%)
CMYKcmyk(78.5%, 57%, 0%, 32.5%)
CIE-LABlab(34.54, 23.27, -56.18)
CIE-LCHlch(34.54, 60.80, 292.50°)
OKLaboklab(44.41% -0.0148 -0.1621)
OKLCHoklch(44.41% 0.163 264.8)
XYZxyz(10.6555, 8.2682, 40.0561)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AAC #AC8725
analogous
#258DAC #254AAC #4425AC
triadic
#254AAC #AC254A #4AAC25
tetradic
#254AAC #AC258D #AC8725 #25AC44
square
#254AAC #AC258D #AC8725 #25AC44
split-complementary
#254AAC #AC4425 #8DAC25
monochromatic
#0F1F47 #1A347A #254AAC #3A64D5 #6C8CDF

Accessibility & contrast

On white

7.91
#254AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#254AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AAC
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AAC#FFFFFF#000000##FFFFFF
##254AAC1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254aac;
/* rgb */ color: rgb(37, 74, 172);
/* oklch */ color: oklch(44.4% 0.163 264.8);
Tailwind
colors: {
  custom: {
    50: '#757cc5',
    500: '#254aac',
    950: '#000000',
  },
}
SCSS
$custom: #254aac;
$custom-light: #757cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#254aac",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 172
  },
  "hsl": {
    "h": 223.556,
    "s": 64.593,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44412,
    "c": 0.16282,
    "h": 264.8
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#254AAC
secondary
#C6AC67
accent
#BA40E8
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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