#254EB5#254EB5

#254EB5 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.170 H 264.3°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#254EB5
RGBrgb(37, 78, 181)
HSLhsl(223, 66%, 43%)
HSVhsv(223, 80%, 71%)
CMYKcmyk(79.6%, 56.9%, 0%, 29%)
CIE-LABlab(36.32, 24.08, -58.60)
CIE-LCHlch(36.32, 63.36, 292.34°)
OKLaboklab(45.98% -0.017 -0.1692)
OKLCHoklch(45.98% 0.17 264.3)
XYZxyz(11.8249, 9.1769, 44.8552)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EB5 #B58C25
analogous
#2596B5 #254EB5 #4425B5
triadic
#254EB5 #B5254E #4EB525
tetradic
#254EB5 #B52596 #B58C25 #25B544
square
#254EB5 #B52596 #B58C25 #25B544
split-complementary
#254EB5 #B54425 #96B525
monochromatic
#10224F #1B3882 #254EB5 #3F6BD8 #7292E2

Accessibility & contrast

On white

7.41
#254EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#254EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EB5
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EB5#FFFFFF#000000##FFFFFF
##254EB51.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #254eb5;
/* rgb */ color: rgb(37, 78, 181);
/* oklch */ color: oklch(46.0% 0.170 264.3);
Tailwind
colors: {
  custom: {
    50: '#777fcc',
    500: '#254eb5',
    950: '#000000',
  },
}
SCSS
$custom: #254eb5;
$custom-light: #777fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#254eb5",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 222.917,
    "s": 66.055,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45977,
    "c": 0.17006,
    "h": 264.3
  },
  "luminance": 0.09178
}

Semantic roles & 50–950 ramp

primary
#254EB5
secondary
#C9AF6D
accent
#B93FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #254EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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