#254CA1#254CA1

#254CA1 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.145 H 263.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#254CA1
RGBrgb(37, 76, 161)
HSLhsl(221, 63%, 39%)
HSVhsv(221, 77%, 63%)
CMYKcmyk(77%, 52.8%, 0%, 36.9%)
CIE-LABlab(34.26, 17.64, -50.04)
CIE-LCHlch(34.26, 53.06, 289.42°)
OKLaboklab(43.94% -0.0172 -0.1441)
OKLCHoklch(43.94% 0.145 263.2)
XYZxyz(9.7781, 8.1343, 34.7660)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CA1 #A17A25
analogous
#258AA1 #254CA1 #3C25A1
triadic
#254CA1 #A1254C #4CA125
tetradic
#254CA1 #A1258A #A17A25 #25A13C
square
#254CA1 #A1258A #A17A25 #25A13C
split-complementary
#254CA1 #A13C25 #8AA125
monochromatic
#0E1D3D #1A356F #254CA1 #3364D0 #658ADC

Accessibility & contrast

On white

7.99
#254CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#254CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CA1
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CA1#FFFFFF#000000##FFFFFF
##254CA11.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ca1;
/* rgb */ color: rgb(37, 76, 161);
/* oklch */ color: oklch(43.9% 0.145 263.2);
Tailwind
colors: {
  custom: {
    50: '#727dbd',
    500: '#254ca1',
    950: '#000000',
  },
}
SCSS
$custom: #254ca1;
$custom-light: #727dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#254ca1",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 161
  },
  "hsl": {
    "h": 221.129,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43942,
    "c": 0.1451,
    "h": 263.2
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#254CA1
secondary
#C1A361
accent
#B242E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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