#254DB1#254DB1

#254DB1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.166 H 264.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#254DB1
RGBrgb(37, 77, 177)
HSLhsl(223, 65%, 42%)
HSVhsv(223, 79%, 69%)
CMYKcmyk(79.1%, 56.5%, 0%, 30.6%)
CIE-LABlab(35.74, 23.20, -57.19)
CIE-LCHlch(35.74, 61.71, 292.08°)
OKLaboklab(45.44% -0.0166 -0.1651)
OKLCHoklch(45.44% 0.166 264.3)
XYZxyz(11.3498, 8.8741, 42.7011)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254DB1 #B18925
analogous
#2593B1 #254DB1 #4325B1
triadic
#254DB1 #B1254D #4DB125
tetradic
#254DB1 #B12593 #B18925 #25B143
square
#254DB1 #B12593 #B18925 #25B143
split-complementary
#254DB1 #B14325 #93B125
monochromatic
#10214C #1A377E #254DB1 #3D69D6 #6F90E1

Accessibility & contrast

On white

7.57
#254DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#254DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254DB1
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254DB1#FFFFFF#000000##FFFFFF
##254DB11.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #254db1;
/* rgb */ color: rgb(37, 77, 177);
/* oklch */ color: oklch(45.4% 0.166 264.3);
Tailwind
colors: {
  custom: {
    50: '#767ec9',
    500: '#254db1',
    950: '#000000',
  },
}
SCSS
$custom: #254db1;
$custom-light: #767ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#254db1",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 222.857,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45442,
    "c": 0.16589,
    "h": 264.3
  },
  "luminance": 0.08875
}

Semantic roles & 50–950 ramp

primary
#254DB1
secondary
#C8AD6A
accent
#B83FE8
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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