#254BA8#254BA8

#254BA8 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.3% C 0.156 H 264.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#254BA8
RGBrgb(37, 75, 168)
HSLhsl(223, 64%, 40%)
HSVhsv(223, 78%, 66%)
CMYKcmyk(78%, 55.4%, 0%, 34.1%)
CIE-LABlab(34.50, 21.04, -53.85)
CIE-LCHlch(34.50, 57.81, 291.35°)
OKLaboklab(44.29% -0.0158 -0.1553)
OKLCHoklch(44.29% 0.156 264.2)
XYZxyz(10.3444, 8.2514, 38.0857)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254BA8 #A88225
analogous
#258DA8 #254BA8 #4025A8
triadic
#254BA8 #A8254B #4BA825
tetradic
#254BA8 #A8258D #A88225 #25A840
square
#254BA8 #A8258D #A88225 #25A840
split-complementary
#254BA8 #A84025 #8DA825
monochromatic
#0F1E44 #1A3576 #254BA8 #3764D3 #698BDE

Accessibility & contrast

On white

7.92
#254BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#254BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254BA8
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254BA8#FFFFFF#000000##FFFFFF
##254BA81.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#004BA6
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254ba8;
/* rgb */ color: rgb(37, 75, 168);
/* oklch */ color: oklch(44.3% 0.156 264.2);
Tailwind
colors: {
  custom: {
    50: '#747cc3',
    500: '#254ba8',
    950: '#000000',
  },
}
SCSS
$custom: #254ba8;
$custom-light: #747cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#254ba8",
  "rgb": {
    "r": 37,
    "g": 75,
    "b": 168
  },
  "hsl": {
    "h": 222.595,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44289,
    "c": 0.15608,
    "h": 264.2
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#254BA8
secondary
#C4A865
accent
#B741E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #254BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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