#254DB3#254DB3

#254DB3 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.169 H 264.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#254DB3
RGBrgb(37, 77, 179)
HSLhsl(223, 66%, 42%)
HSVhsv(223, 79%, 70%)
CMYKcmyk(79.3%, 57%, 0%, 29.8%)
CIE-LABlab(35.90, 23.97, -58.12)
CIE-LCHlch(35.90, 62.87, 292.41°)
OKLaboklab(45.61% -0.0165 -0.1678)
OKLCHoklch(45.61% 0.169 264.4)
XYZxyz(11.5506, 8.9544, 43.7587)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DB3 #B38B25
analogous
#2594B3 #254DB3 #4425B3
triadic
#254DB3 #B3254D #4DB325
tetradic
#254DB3 #B32594 #B38B25 #25B344
square
#254DB3 #B32594 #B38B25 #25B344
split-complementary
#254DB3 #B34425 #94B325
monochromatic
#10214E #1B3780 #254DB3 #3E69D7 #7191E2

Accessibility & contrast

On white

7.52
#254DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#254DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DB3
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DB3#FFFFFF#000000##FFFFFF
##254DB31.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #254db3;
/* rgb */ color: rgb(37, 77, 179);
/* oklch */ color: oklch(45.6% 0.169 264.4);
Tailwind
colors: {
  custom: {
    50: '#777ecb',
    500: '#254db3',
    950: '#000000',
  },
}
SCSS
$custom: #254db3;
$custom-light: #777ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#254db3",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 223.099,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45608,
    "c": 0.1686,
    "h": 264.4
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#254DB3
secondary
#C8AE6B
accent
#B93FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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