#254AB3#254AB3

#254AB3 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.0% C 0.172 H 265.2°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#254AB3
RGBrgb(37, 74, 179)
HSLhsl(224, 66%, 42%)
HSVhsv(224, 79%, 70%)
CMYKcmyk(79.3%, 58.7%, 0%, 29.8%)
CIE-LABlab(35.09, 25.97, -59.43)
CIE-LCHlch(35.09, 64.85, 293.60°)
OKLaboklab(45% -0.0145 -0.1717)
OKLCHoklch(45% 0.172 265.2)
XYZxyz(11.3455, 8.5442, 43.6903)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AB3 #B38E25
analogous
#2591B3 #254AB3 #4725B3
triadic
#254AB3 #B3254A #4AB325
tetradic
#254AB3 #B32591 #B38E25 #25B347
square
#254AB3 #B32591 #B38E25 #25B347
split-complementary
#254AB3 #B34725 #91B325
monochromatic
#10204E #1B3580 #254AB3 #3E66D7 #718EE2

Accessibility & contrast

On white

7.75
#254AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#254AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AB3
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AB3#FFFFFF#000000##FFFFFF
##254AB31.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #254ab3;
/* rgb */ color: rgb(37, 74, 179);
/* oklch */ color: oklch(45.0% 0.172 265.2);
Tailwind
colors: {
  custom: {
    50: '#777ccb',
    500: '#254ab3',
    950: '#000000',
  },
}
SCSS
$custom: #254ab3;
$custom-light: #777ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#254ab3",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 179
  },
  "hsl": {
    "h": 224.366,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45003,
    "c": 0.1723,
    "h": 265.2
  },
  "luminance": 0.08546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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