#254AB4#254AB4

#254AB4 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.174 H 265.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#254AB4
RGBrgb(37, 74, 180)
HSLhsl(224, 66%, 43%)
HSVhsv(224, 79%, 71%)
CMYKcmyk(79.4%, 58.9%, 0%, 29.4%)
CIE-LABlab(35.17, 26.35, -59.89)
CIE-LCHlch(35.17, 65.43, 293.75°)
OKLaboklab(45.09% -0.0144 -0.173)
OKLCHoklch(45.09% 0.174 265.2)
XYZxyz(11.4470, 8.5848, 44.2249)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AB4 #B48F25
analogous
#2591B4 #254AB4 #4825B4
triadic
#254AB4 #B4254A #4AB425
tetradic
#254AB4 #B42591 #B48F25 #25B448
square
#254AB4 #B42591 #B48F25 #25B448
split-complementary
#254AB4 #B44825 #91B425
monochromatic
#10204E #1B3581 #254AB4 #3F66D7 #718FE2

Accessibility & contrast

On white

7.73
#254AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#254AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AB4
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AB4#FFFFFF#000000##FFFFFF
##254AB41.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254ab4;
/* rgb */ color: rgb(37, 74, 180);
/* oklch */ color: oklch(45.1% 0.174 265.2);
Tailwind
colors: {
  custom: {
    50: '#777ccb',
    500: '#254ab4',
    950: '#000000',
  },
}
SCSS
$custom: #254ab4;
$custom-light: #777ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#254ab4",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 224.476,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45089,
    "c": 0.17364,
    "h": 265.2
  },
  "luminance": 0.08586
}

Semantic roles & 50–950 ramp

primary
#254AB4
secondary
#C9B16C
accent
#BD3FE9
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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