#254DA7#254DA7

#254DA7 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.152 H 263.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#254DA7
RGBrgb(37, 77, 167)
HSLhsl(222, 64%, 40%)
HSVhsv(222, 78%, 65%)
CMYKcmyk(77.8%, 53.9%, 0%, 34.5%)
CIE-LABlab(34.98, 19.31, -52.47)
CIE-LCHlch(34.98, 55.91, 290.21°)
OKLaboklab(44.63% -0.0174 -0.1512)
OKLCHoklch(44.63% 0.152 263.4)
XYZxyz(10.3894, 8.4899, 37.6429)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DA7 #A77F25
analogous
#258EA7 #254DA7 #3E25A7
triadic
#254DA7 #A7254D #4DA725
tetradic
#254DA7 #A7258E #A77F25 #25A73E
square
#254DA7 #A7258E #A77F25 #25A73E
split-complementary
#254DA7 #A73E25 #8EA725
monochromatic
#0F1F43 #1A3675 #254DA7 #3767D3 #698DDE

Accessibility & contrast

On white

7.78
#254DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#254DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DA7
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DA7#FFFFFF#000000##FFFFFF
##254DA71.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0659AA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254da7;
/* rgb */ color: rgb(37, 77, 167);
/* oklch */ color: oklch(44.6% 0.152 263.4);
Tailwind
colors: {
  custom: {
    50: '#747ec2',
    500: '#254da7',
    950: '#000000',
  },
}
SCSS
$custom: #254da7;
$custom-light: #747ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#254da7",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 221.538,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.4463,
    "c": 0.15219,
    "h": 263.4
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#254DA7
secondary
#C4A664
accent
#B441E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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