#254A9A#254A9A

#254A9A is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.0% C 0.138 H 263.2°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#254A9A
RGBrgb(37, 74, 154)
HSLhsl(221, 61%, 37%)
HSVhsv(221, 76%, 60%)
CMYKcmyk(76%, 51.9%, 0%, 39.6%)
CIE-LABlab(33.19, 16.25, -47.56)
CIE-LCHlch(33.19, 50.26, 288.86°)
OKLaboklab(42.96% -0.0164 -0.1368)
OKLCHoklch(42.96% 0.138 263.2)
XYZxyz(9.0424, 7.6230, 31.5604)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A9A #9A7525
analogous
#25849A #254A9A #3B259A
triadic
#254A9A #9A254A #4A9A25
tetradic
#254A9A #9A2584 #9A7525 #259A3B
square
#254A9A #9A2584 #9A7525 #259A3B
split-complementary
#254A9A #9A3B25 #849A25
monochromatic
#0D1B37 #193269 #254A9A #3162CB #6087D9

Accessibility & contrast

On white

8.32
#254A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#254A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A9A
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A9A#FFFFFF#000000##FFFFFF
##254A9A1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17549D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#005D6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254a9a;
/* rgb */ color: rgb(37, 74, 154);
/* oklch */ color: oklch(43.0% 0.138 263.2);
Tailwind
colors: {
  custom: {
    50: '#717cb8',
    500: '#254a9a',
    950: '#000000',
  },
}
SCSS
$custom: #254a9a;
$custom-light: #717cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#254a9a",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 154
  },
  "hsl": {
    "h": 221.026,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42963,
    "c": 0.13778,
    "h": 263.2
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#254A9A
secondary
#BE9F5D
accent
#B143E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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