#254CC6#254CC6

#254CC6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.1% C 0.195 H 265.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#254CC6
RGBrgb(37, 76, 198)
HSLhsl(225, 69%, 46%)
HSVhsv(225, 81%, 78%)
CMYKcmyk(81.3%, 61.6%, 0%, 22.4%)
CIE-LABlab(37.18, 31.87, -67.16)
CIE-LCHlch(37.18, 74.34, 295.39°)
OKLaboklab(47.05% -0.0153 -0.1943)
OKLCHoklch(47.05% 0.195 265.5)
XYZxyz(13.5368, 9.6378, 54.5620)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CC6 #C69F25
analogous
#259CC6 #254CC6 #4E25C6
triadic
#254CC6 #C6254C #4CC625
tetradic
#254CC6 #C6259C #C69F25 #25C64E
square
#254CC6 #C6259C #C69F25 #25C64E
split-complementary
#254CC6 #C64E25 #9CC625
monochromatic
#12245F #1B3892 #254CC6 #4B6EDD #7E98E7

Accessibility & contrast

On white

7.17
#254CC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#254CC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254CC6
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CC6#FFFFFF#000000##FFFFFF
##254CC61.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #254cc6;
/* rgb */ color: rgb(37, 76, 198);
/* oklch */ color: oklch(47.1% 0.195 265.5);
Tailwind
colors: {
  custom: {
    50: '#7b7dd8',
    500: '#254cc6',
    950: '#000000',
  },
}
SCSS
$custom: #254cc6;
$custom-light: #7b7dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#254cc6",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 198
  },
  "hsl": {
    "h": 225.466,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47053,
    "c": 0.19494,
    "h": 265.5
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#254CC6
secondary
#CFBA77
accent
#C13CEB
background
#F8F7FD
surface
#EFEEFB
border
#CAC9D4
text
#0B0915
muted
#7C7B83

Preview Lab

Preview with #254CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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