#254FC6#254FC6

#254FC6 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.191 H 264.9°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#254FC6
RGBrgb(37, 79, 198)
HSLhsl(224, 69%, 46%)
HSVhsv(224, 81%, 78%)
CMYKcmyk(81.3%, 60.1%, 0%, 22.4%)
CIE-LABlab(37.95, 29.92, -65.91)
CIE-LCHlch(37.95, 72.38, 294.42°)
OKLaboklab(47.62% -0.0169 -0.1906)
OKLCHoklch(47.62% 0.191 264.9)
XYZxyz(13.7484, 10.0608, 54.6325)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254FC6 #C69C25
analogous
#259FC6 #254FC6 #4B25C6
triadic
#254FC6 #C6254F #4FC625
tetradic
#254FC6 #C6259F #C69C25 #25C64B
square
#254FC6 #C6259F #C69C25 #25C64B
split-complementary
#254FC6 #C64B25 #9FC625
monochromatic
#12265F #1B3A92 #254FC6 #4B71DD #7E9AE7

Accessibility & contrast

On white

6.97
#254FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#254FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #254FC6
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254FC6#FFFFFF#000000##FFFFFF
##254FC61.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #254fc6;
/* rgb */ color: rgb(37, 79, 198);
/* oklch */ color: oklch(47.6% 0.191 264.9);
Tailwind
colors: {
  custom: {
    50: '#7b7fd8',
    500: '#254fc6',
    950: '#000000',
  },
}
SCSS
$custom: #254fc6;
$custom-light: #7b7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#254fc6",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 198
  },
  "hsl": {
    "h": 224.348,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47624,
    "c": 0.19138,
    "h": 264.9
  },
  "luminance": 0.10062
}

Semantic roles & 50–950 ramp

primary
#254FC6
secondary
#CFB877
accent
#BE3CEB
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #254FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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