#254CAB#254CAB

#254CAB is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.159 H 264.1°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#254CAB
RGBrgb(37, 76, 171)
HSLhsl(223, 64%, 41%)
HSVhsv(223, 78%, 67%)
CMYKcmyk(78.4%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.01, 21.54, -54.82)
CIE-LCHlch(35.01, 58.90, 291.45°)
OKLaboklab(44.74% -0.0163 -0.1581)
OKLCHoklch(44.74% 0.159 264.1)
XYZxyz(10.6955, 8.5012, 39.5974)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254CAB #AB8425
analogous
#258FAB #254CAB #4125AB
triadic
#254CAB #AB254C #4CAB25
tetradic
#254CAB #AB258F #AB8425 #25AB41
square
#254CAB #AB258F #AB8425 #25AB41
split-complementary
#254CAB #AB4125 #8FAB25
monochromatic
#0F1F46 #1A3679 #254CAB #3966D4 #6B8DDF

Accessibility & contrast

On white

7.78
#254CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254CAB
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254CAB#FFFFFF#000000##FFFFFF
##254CAB1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #254cab;
/* rgb */ color: rgb(37, 76, 171);
/* oklch */ color: oklch(44.7% 0.159 264.1);
Tailwind
colors: {
  custom: {
    50: '#757dc5',
    500: '#254cab',
    950: '#000000',
  },
}
SCSS
$custom: #254cab;
$custom-light: #757dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#254cab",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 222.537,
    "s": 64.423,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44742,
    "c": 0.15895,
    "h": 264.1
  },
  "luminance": 0.08502
}

Semantic roles & 50–950 ramp

primary
#254CAB
secondary
#C5AA67
accent
#B740E7
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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