#254EC6#254EC6

#254EC6 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.4% C 0.193 H 265.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#254EC6
RGBrgb(37, 78, 198)
HSLhsl(225, 69%, 46%)
HSVhsv(225, 81%, 78%)
CMYKcmyk(81.3%, 60.6%, 0%, 22.4%)
CIE-LABlab(37.69, 30.57, -66.33)
CIE-LCHlch(37.69, 73.03, 294.74°)
OKLaboklab(47.43% -0.0164 -0.1919)
OKLCHoklch(47.43% 0.193 265.1)
XYZxyz(13.6768, 9.9177, 54.6086)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254EC6 #C69D25
analogous
#259FC6 #254EC6 #4C25C6
triadic
#254EC6 #C6254E #4EC625
tetradic
#254EC6 #C6259F #C69D25 #25C64C
square
#254EC6 #C6259F #C69D25 #25C64C
split-complementary
#254EC6 #C64C25 #9FC625
monochromatic
#12255F #1B3A92 #254EC6 #4B70DD #7E99E7

Accessibility & contrast

On white

7.04
#254EC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#254EC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254EC6
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254EC6#FFFFFF#000000##FFFFFF
##254EC61.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#0051C4
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #254ec6;
/* rgb */ color: rgb(37, 78, 198);
/* oklch */ color: oklch(47.4% 0.193 265.1);
Tailwind
colors: {
  custom: {
    50: '#7b7fd8',
    500: '#254ec6',
    950: '#000000',
  },
}
SCSS
$custom: #254ec6;
$custom-light: #7b7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#254ec6",
  "rgb": {
    "r": 37,
    "g": 78,
    "b": 198
  },
  "hsl": {
    "h": 224.72,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47432,
    "c": 0.19257,
    "h": 265.1
  },
  "luminance": 0.09919
}

Semantic roles & 50–950 ramp

primary
#254EC6
secondary
#CFB977
accent
#BF3CEB
background
#F8F7FD
surface
#EFEEFB
border
#CAC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #254EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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