#254DA5#254DA5

#254DA5 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.149 H 263.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#254DA5
RGBrgb(37, 77, 165)
HSLhsl(221, 63%, 40%)
HSVhsv(221, 78%, 65%)
CMYKcmyk(77.6%, 53.3%, 0%, 35.3%)
CIE-LABlab(34.84, 18.53, -51.51)
CIE-LCHlch(34.84, 54.74, 289.79°)
OKLaboklab(44.47% -0.0176 -0.1484)
OKLCHoklch(44.47% 0.149 263.2)
XYZxyz(10.2059, 8.4165, 36.6767)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DA5 #A57D25
analogous
#258DA5 #254DA5 #3D25A5
triadic
#254DA5 #A5254D #4DA525
tetradic
#254DA5 #A5258D #A57D25 #25A53D
square
#254DA5 #A5258D #A57D25 #25A53D
split-complementary
#254DA5 #A53D25 #8DA525
monochromatic
#0F1E41 #1A3673 #254DA5 #3566D2 #678CDD

Accessibility & contrast

On white

7.83
#254DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#254DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DA5
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DA5#FFFFFF#000000##FFFFFF
##254DA51.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D58A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254da5;
/* rgb */ color: rgb(37, 77, 165);
/* oklch */ color: oklch(44.5% 0.149 263.2);
Tailwind
colors: {
  custom: {
    50: '#737ec0',
    500: '#254da5',
    950: '#000000',
  },
}
SCSS
$custom: #254da5;
$custom-light: #737ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#254da5",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 221.25,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44471,
    "c": 0.14941,
    "h": 263.2
  },
  "luminance": 0.08418
}

Semantic roles & 50–950 ramp

primary
#254DA5
secondary
#C3A563
accent
#B341E6
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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