#254AB2#254AB2

#254AB2 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.171 H 265.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#254AB2
RGBrgb(37, 74, 178)
HSLhsl(224, 66%, 42%)
HSVhsv(224, 79%, 70%)
CMYKcmyk(79.2%, 58.4%, 0%, 30.2%)
CIE-LABlab(35.01, 25.58, -58.97)
CIE-LCHlch(35.01, 64.28, 293.45°)
OKLaboklab(44.92% -0.0145 -0.1703)
OKLCHoklch(44.92% 0.171 265.1)
XYZxyz(11.2448, 8.5039, 43.1596)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AB2 #B28D25
analogous
#2591B2 #254AB2 #4625B2
triadic
#254AB2 #B2254A #4AB225
tetradic
#254AB2 #B22591 #B28D25 #25B246
square
#254AB2 #B22591 #B28D25 #25B246
split-complementary
#254AB2 #B24625 #91B225
monochromatic
#10204D #1A357F #254AB2 #3D66D7 #708EE1

Accessibility & contrast

On white

7.77
#254AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#254AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AB2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AB2#FFFFFF#000000##FFFFFF
##254AB21.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254ab2;
/* rgb */ color: rgb(37, 74, 178);
/* oklch */ color: oklch(44.9% 0.171 265.1);
Tailwind
colors: {
  custom: {
    50: '#777cca',
    500: '#254ab2',
    950: '#000000',
  },
}
SCSS
$custom: #254ab2;
$custom-light: #777cca;
$custom-dark: #000000;
JSON
{
  "hex": "#254ab2",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 224.255,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44918,
    "c": 0.17096,
    "h": 265.1
  },
  "luminance": 0.08505
}

Semantic roles & 50–950 ramp

primary
#254AB2
secondary
#C8B06B
accent
#BC3FE9
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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