#254CB5#254CB5

#254CB5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.173 H 264.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#254CB5
RGBrgb(37, 76, 181)
HSLhsl(224, 66%, 43%)
HSVhsv(224, 80%, 71%)
CMYKcmyk(79.6%, 58%, 0%, 29%)
CIE-LABlab(35.79, 25.41, -59.48)
CIE-LCHlch(35.79, 64.68, 293.13°)
OKLaboklab(45.57% -0.0157 -0.1718)
OKLCHoklch(45.57% 0.173 264.8)
XYZxyz(11.6849, 8.8970, 44.8086)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CB5 #B58E25
analogous
#2594B5 #254CB5 #4625B5
triadic
#254CB5 #B5254C #4CB525
tetradic
#254CB5 #B52594 #B58E25 #25B546
square
#254CB5 #B52594 #B58E25 #25B546
split-complementary
#254CB5 #B54625 #94B525
monochromatic
#10214F #1B3782 #254CB5 #3F69D8 #7291E2

Accessibility & contrast

On white

7.56
#254CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#254CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CB5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CB5#FFFFFF#000000##FFFFFF
##254CB51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #254cb5;
/* rgb */ color: rgb(37, 76, 181);
/* oklch */ color: oklch(45.6% 0.173 264.8);
Tailwind
colors: {
  custom: {
    50: '#777dcc',
    500: '#254cb5',
    950: '#000000',
  },
}
SCSS
$custom: #254cb5;
$custom-light: #777dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#254cb5",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 223.75,
    "s": 66.055,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45574,
    "c": 0.17252,
    "h": 264.8
  },
  "luminance": 0.08898
}

Semantic roles & 50–950 ramp

primary
#254CB5
secondary
#C9B06D
accent
#BB3FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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