#254CB3#254CB3

#254CB3 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.170 H 264.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#254CB3
RGBrgb(37, 76, 179)
HSLhsl(224, 66%, 42%)
HSVhsv(224, 79%, 70%)
CMYKcmyk(79.3%, 57.5%, 0%, 29.8%)
CIE-LABlab(35.63, 24.64, -58.56)
CIE-LCHlch(35.63, 63.53, 292.82°)
OKLaboklab(45.41% -0.0158 -0.1691)
OKLCHoklch(45.41% 0.17 264.7)
XYZxyz(11.4812, 8.8155, 43.7355)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CB3 #B38C25
analogous
#2593B3 #254CB3 #4525B3
triadic
#254CB3 #B3254C #4CB325
tetradic
#254CB3 #B32593 #B38C25 #25B345
square
#254CB3 #B32593 #B38C25 #25B345
split-complementary
#254CB3 #B34525 #93B325
monochromatic
#10214E #1B3680 #254CB3 #3E68D7 #7190E2

Accessibility & contrast

On white

7.60
#254CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#254CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CB3
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CB3#FFFFFF#000000##FFFFFF
##254CB31.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #254cb3;
/* rgb */ color: rgb(37, 76, 179);
/* oklch */ color: oklch(45.4% 0.170 264.7);
Tailwind
colors: {
  custom: {
    50: '#777dcb',
    500: '#254cb3',
    950: '#000000',
  },
}
SCSS
$custom: #254cb3;
$custom-light: #777dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#254cb3",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 223.521,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45405,
    "c": 0.16983,
    "h": 264.7
  },
  "luminance": 0.08817
}

Semantic roles & 50–950 ramp

primary
#254CB3
secondary
#C8AF6B
accent
#BA3FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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