#254A9E#254A9E

#254A9E is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.143 H 263.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#254A9E
RGBrgb(37, 74, 158)
HSLhsl(222, 62%, 38%)
HSVhsv(222, 77%, 62%)
CMYKcmyk(76.6%, 53.2%, 0%, 38%)
CIE-LABlab(33.47, 17.82, -49.51)
CIE-LCHlch(33.47, 52.62, 289.79°)
OKLaboklab(43.28% -0.0159 -0.1425)
OKLCHoklch(43.28% 0.143 263.6)
XYZxyz(9.3811, 7.7584, 33.3442)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A9E #9E7925
analogous
#25869E #254A9E #3C259E
triadic
#254A9E #9E254A #4A9E25
tetradic
#254A9E #9E2586 #9E7925 #259E3C
square
#254A9E #9E2586 #9E7925 #259E3C
split-complementary
#254A9E #9E3C25 #869E25
monochromatic
#0E1C3B #19336C #254A9E #3162CF #6387DA

Accessibility & contrast

On white

8.23
#254A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#254A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A9E
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A9E#FFFFFF#000000##FFFFFF
##254A9E1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F55A1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#005E6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254a9e;
/* rgb */ color: rgb(37, 74, 158);
/* oklch */ color: oklch(43.3% 0.143 263.6);
Tailwind
colors: {
  custom: {
    50: '#727bbb',
    500: '#254a9e',
    950: '#000000',
  },
}
SCSS
$custom: #254a9e;
$custom-light: #727bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#254a9e",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 158
  },
  "hsl": {
    "h": 221.653,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43275,
    "c": 0.14342,
    "h": 263.6
  },
  "luminance": 0.07759
}

Semantic roles & 50–950 ramp

primary
#254A9E
secondary
#C0A25F
accent
#B343E5
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #254A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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