#254AAA#254AAA

#254AAA is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.2% C 0.160 H 264.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#254AAA
RGBrgb(37, 74, 170)
HSLhsl(223, 64%, 41%)
HSVhsv(223, 78%, 67%)
CMYKcmyk(78.2%, 56.5%, 0%, 33.3%)
CIE-LABlab(34.38, 22.49, -55.24)
CIE-LCHlch(34.38, 59.64, 292.16°)
OKLaboklab(44.25% -0.0149 -0.1594)
OKLCHoklch(44.25% 0.16 264.6)
XYZxyz(10.4649, 8.1920, 39.0521)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AAA #AA8525
analogous
#258CAA #254AAA #4225AA
triadic
#254AAA #AA254A #4AAA25
tetradic
#254AAA #AA258C #AA8525 #25AA42
square
#254AAA #AA258C #AA8525 #25AA42
split-complementary
#254AAA #AA4225 #8CAA25
monochromatic
#0F1E45 #1A3478 #254AAA #3864D4 #6B8BDF

Accessibility & contrast

On white

7.96
#254AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#254AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AAA
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AAA#FFFFFF#000000##FFFFFF
##254AAA1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254aaa;
/* rgb */ color: rgb(37, 74, 170);
/* oklch */ color: oklch(44.2% 0.160 264.6);
Tailwind
colors: {
  custom: {
    50: '#757cc4',
    500: '#254aaa',
    950: '#000000',
  },
}
SCSS
$custom: #254aaa;
$custom-light: #757cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#254aaa",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 223.308,
    "s": 64.251,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44245,
    "c": 0.16009,
    "h": 264.6
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#254AAA
secondary
#C5AA66
accent
#B941E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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