#254AAB#254AAB

#254AAB is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.3% C 0.161 H 264.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#254AAB
RGBrgb(37, 74, 171)
HSLhsl(223, 64%, 41%)
HSVhsv(223, 78%, 67%)
CMYKcmyk(78.4%, 56.7%, 0%, 32.9%)
CIE-LABlab(34.46, 22.88, -55.71)
CIE-LCHlch(34.46, 60.22, 292.33°)
OKLaboklab(44.33% -0.0149 -0.1608)
OKLCHoklch(44.33% 0.161 264.7)
XYZxyz(10.5598, 8.2299, 39.5522)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AAB #AB8625
analogous
#258DAB #254AAB #4325AB
triadic
#254AAB #AB254A #4AAB25
tetradic
#254AAB #AB258D #AB8625 #25AB43
square
#254AAB #AB258D #AB8625 #25AB43
split-complementary
#254AAB #AB4325 #8DAB25
monochromatic
#0F1E46 #1A3479 #254AAB #3964D4 #6B8BDF

Accessibility & contrast

On white

7.94
#254AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254AAB
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AAB#FFFFFF#000000##FFFFFF
##254AAB1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #254aab;
/* rgb */ color: rgb(37, 74, 171);
/* oklch */ color: oklch(44.3% 0.161 264.7);
Tailwind
colors: {
  custom: {
    50: '#757cc5',
    500: '#254aab',
    950: '#000000',
  },
}
SCSS
$custom: #254aab;
$custom-light: #757cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#254aab",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 171
  },
  "hsl": {
    "h": 223.433,
    "s": 64.423,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44328,
    "c": 0.16146,
    "h": 264.7
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#254AAB
secondary
#C5AB67
accent
#B940E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #254AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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