#254AA5#254AA5

#254AA5 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.8% C 0.153 H 264.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#254AA5
RGBrgb(37, 74, 165)
HSLhsl(223, 63%, 40%)
HSVhsv(223, 78%, 65%)
CMYKcmyk(77.6%, 55.2%, 0%, 35.3%)
CIE-LABlab(34.00, 20.55, -52.87)
CIE-LCHlch(34.00, 56.72, 291.24°)
OKLaboklab(43.84% -0.0153 -0.1524)
OKLCHoklch(43.84% 0.153 264.3)
XYZxyz(10.0008, 8.0064, 36.6083)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254AA5 #A58025
analogous
#258AA5 #254AA5 #4025A5
triadic
#254AA5 #A5254A #4AA525
tetradic
#254AA5 #A5258A #A58025 #25A540
square
#254AA5 #A5258A #A58025 #25A540
split-complementary
#254AA5 #A54025 #8AA525
monochromatic
#0F1D41 #1A3473 #254AA5 #3563D2 #6789DD

Accessibility & contrast

On white

8.07
#254AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#254AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254AA5
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254AA5#FFFFFF#000000##FFFFFF
##254AA51.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #254aa5;
/* rgb */ color: rgb(37, 74, 165);
/* oklch */ color: oklch(43.8% 0.153 264.3);
Tailwind
colors: {
  custom: {
    50: '#737cc0',
    500: '#254aa5',
    950: '#000000',
  },
}
SCSS
$custom: #254aa5;
$custom-light: #737cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#254aa5",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 222.656,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43835,
    "c": 0.15319,
    "h": 264.3
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#254AA5
secondary
#C3A763
accent
#B741E6
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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