#254A99#254A99

#254A99 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.9% C 0.136 H 263.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#254A99
RGBrgb(37, 74, 153)
HSLhsl(221, 61%, 37%)
HSVhsv(221, 76%, 60%)
CMYKcmyk(75.8%, 51.6%, 0%, 40%)
CIE-LABlab(33.11, 15.86, -47.07)
CIE-LCHlch(33.11, 49.67, 288.62°)
OKLaboklab(42.89% -0.0165 -0.1354)
OKLCHoklch(42.89% 0.136 263)
XYZxyz(8.9594, 7.5898, 31.1236)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A99 #997425
analogous
#258499 #254A99 #3A2599
triadic
#254A99 #99254A #4A9925
tetradic
#254A99 #992584 #997425 #25993A
square
#254A99 #992584 #997425 #25993A
split-complementary
#254A99 #993A25 #849925
monochromatic
#0D1A36 #193268 #254A99 #3162CA #6086D9

Accessibility & contrast

On white

8.34
#254A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254A99
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A99#FFFFFF#000000##FFFFFF
##254A991.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19539C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254a99;
/* rgb */ color: rgb(37, 74, 153);
/* oklch */ color: oklch(42.9% 0.136 263.0);
Tailwind
colors: {
  custom: {
    50: '#717cb8',
    500: '#254a99',
    950: '#000000',
  },
}
SCSS
$custom: #254a99;
$custom-light: #717cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#254a99",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 153
  },
  "hsl": {
    "h": 220.862,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42885,
    "c": 0.13637,
    "h": 263
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

primary
#254A99
secondary
#BE9F5C
accent
#B144E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254A99

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

Preview Lab → · Contrast checker → · Palette generator →

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