#254DC6#254DC6

#254DC6 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.2% C 0.194 H 265.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#254DC6
RGBrgb(37, 77, 198)
HSLhsl(225, 69%, 46%)
HSVhsv(225, 81%, 78%)
CMYKcmyk(81.3%, 61.1%, 0%, 22.4%)
CIE-LABlab(37.44, 31.22, -66.74)
CIE-LCHlch(37.44, 73.69, 295.07°)
OKLaboklab(47.24% -0.0158 -0.1931)
OKLCHoklch(47.24% 0.194 265.3)
XYZxyz(13.6063, 9.7767, 54.5851)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DC6 #C69E25
analogous
#259DC6 #254DC6 #4D25C6
triadic
#254DC6 #C6254D #4DC625
tetradic
#254DC6 #C6259D #C69E25 #25C64D
square
#254DC6 #C6259D #C69E25 #25C64D
split-complementary
#254DC6 #C64D25 #9DC625
monochromatic
#12255F #1B3992 #254DC6 #4B6FDD #7E98E7

Accessibility & contrast

On white

7.11
#254DC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#254DC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DC6
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DC6#FFFFFF#000000##FFFFFF
##254DC61.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254dc6;
/* rgb */ color: rgb(37, 77, 198);
/* oklch */ color: oklch(47.2% 0.194 265.3);
Tailwind
colors: {
  custom: {
    50: '#7b7ed8',
    500: '#254dc6',
    950: '#000000',
  },
}
SCSS
$custom: #254dc6;
$custom-light: #7b7ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#254dc6",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 225.093,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47242,
    "c": 0.19376,
    "h": 265.3
  },
  "luminance": 0.09778
}

Semantic roles & 50–950 ramp

primary
#254DC6
secondary
#CFB977
accent
#C03CEB
background
#F8F7FD
surface
#EFEEFB
border
#CAC9D4
text
#0B0915
muted
#7C7B83

Preview Lab

Preview with #254DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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