#254DA2#254DA2

#254DA2 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.145 H 262.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#254DA2
RGBrgb(37, 77, 162)
HSLhsl(221, 63%, 39%)
HSVhsv(221, 77%, 64%)
CMYKcmyk(77.2%, 52.5%, 0%, 36.5%)
CIE-LABlab(34.62, 17.36, -50.06)
CIE-LCHlch(34.62, 52.99, 289.12°)
OKLaboklab(44.24% -0.0179 -0.1441)
OKLCHoklch(44.24% 0.145 262.9)
XYZxyz(9.9361, 8.3086, 35.2555)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DA2 #A27A25
analogous
#258CA2 #254DA2 #3C25A2
triadic
#254DA2 #A2254D #4DA225
tetradic
#254DA2 #A2258C #A27A25 #25A23C
square
#254DA2 #A2258C #A27A25 #25A23C
split-complementary
#254DA2 #A23C25 #8CA225
monochromatic
#0E1E3E #1A3570 #254DA2 #3466D1 #658BDC

Accessibility & contrast

On white

7.89
#254DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#254DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DA2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DA2#FFFFFF#000000##FFFFFF
##254DA21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1457A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254da2;
/* rgb */ color: rgb(37, 77, 162);
/* oklch */ color: oklch(44.2% 0.145 262.9);
Tailwind
colors: {
  custom: {
    50: '#727ebe',
    500: '#254da2',
    950: '#000000',
  },
}
SCSS
$custom: #254da2;
$custom-light: #727ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#254da2",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 162
  },
  "hsl": {
    "h": 220.8,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44236,
    "c": 0.14523,
    "h": 262.9
  },
  "luminance": 0.0831
}

Semantic roles & 50–950 ramp

primary
#254DA2
secondary
#C2A361
accent
#B142E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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