#254FA1#254FA1

#254FA1 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.141 H 262.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#254FA1
RGBrgb(37, 79, 161)
HSLhsl(220, 63%, 39%)
HSVhsv(220, 77%, 63%)
CMYKcmyk(77%, 50.9%, 0%, 36.9%)
CIE-LABlab(35.12, 15.63, -48.66)
CIE-LCHlch(35.12, 51.10, 287.80°)
OKLaboklab(44.6% -0.0197 -0.1399)
OKLCHoklch(44.6% 0.141 262)
XYZxyz(9.9896, 8.5574, 34.8366)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FA1 #A17725
analogous
#258DA1 #254FA1 #3925A1
triadic
#254FA1 #A1254F #4FA125
tetradic
#254FA1 #A1258D #A17725 #25A139
square
#254FA1 #A1258D #A17725 #25A139
split-complementary
#254FA1 #A13925 #8DA125
monochromatic
#0E1E3D #1A376F #254FA1 #3368D0 #658DDC

Accessibility & contrast

On white

7.74
#254FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#254FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254FA1
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FA1#FFFFFF#000000##FFFFFF
##254FA11.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254fa1;
/* rgb */ color: rgb(37, 79, 161);
/* oklch */ color: oklch(44.6% 0.141 262.0);
Tailwind
colors: {
  custom: {
    50: '#727fbd',
    500: '#254fa1',
    950: '#000000',
  },
}
SCSS
$custom: #254fa1;
$custom-light: #727fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#254fa1",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 219.677,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44595,
    "c": 0.14131,
    "h": 262
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#254FA1
secondary
#C1A061
accent
#AE42E6
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #254FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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