#254CB1#254CB1

#254CB1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.167 H 264.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#254CB1
RGBrgb(37, 76, 177)
HSLhsl(223, 65%, 42%)
HSVhsv(223, 79%, 69%)
CMYKcmyk(79.1%, 57.1%, 0%, 30.6%)
CIE-LABlab(35.47, 23.86, -57.63)
CIE-LCHlch(35.47, 62.37, 292.50°)
OKLaboklab(45.24% -0.0159 -0.1664)
OKLCHoklch(45.24% 0.167 264.5)
XYZxyz(11.2804, 8.7352, 42.6780)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CB1 #B18A25
analogous
#2592B1 #254CB1 #4425B1
triadic
#254CB1 #B1254C #4CB125
tetradic
#254CB1 #B12592 #B18A25 #25B144
square
#254CB1 #B12592 #B18A25 #25B144
split-complementary
#254CB1 #B14425 #92B125
monochromatic
#10214C #1A367E #254CB1 #3D68D6 #6F8FE1

Accessibility & contrast

On white

7.64
#254CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#254CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CB1
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CB1#FFFFFF#000000##FFFFFF
##254CB11.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254cb1;
/* rgb */ color: rgb(37, 76, 177);
/* oklch */ color: oklch(45.2% 0.167 264.5);
Tailwind
colors: {
  custom: {
    50: '#767dc9',
    500: '#254cb1',
    950: '#000000',
  },
}
SCSS
$custom: #254cb1;
$custom-light: #767dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#254cb1",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 223.286,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45237,
    "c": 0.16713,
    "h": 264.5
  },
  "luminance": 0.08737
}

Semantic roles & 50–950 ramp

primary
#254CB1
secondary
#C8AE6A
accent
#B93FE8
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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