#254A9D#254A9D

#254A9D is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.2% C 0.142 H 263.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#254A9D
RGBrgb(37, 74, 157)
HSLhsl(222, 62%, 38%)
HSVhsv(222, 76%, 62%)
CMYKcmyk(76.4%, 52.9%, 0%, 38.4%)
CIE-LABlab(33.40, 17.42, -49.02)
CIE-LCHlch(33.40, 52.03, 289.57°)
OKLaboklab(43.2% -0.0161 -0.1411)
OKLCHoklch(43.2% 0.142 263.5)
XYZxyz(9.2954, 7.7242, 32.8928)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A9D #9D7825
analogous
#25869D #254A9D #3C259D
triadic
#254A9D #9D254A #4A9D25
tetradic
#254A9D #9D2586 #9D7825 #259D3C
square
#254A9D #9D2586 #9D7825 #259D3C
split-complementary
#254A9D #9D3C25 #869D25
monochromatic
#0E1B3A #19336B #254A9D #3161CE #6287DA

Accessibility & contrast

On white

8.25
#254A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254A9D
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A9D#FFFFFF#000000##FFFFFF
##254A9D1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1154A0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#005E6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254a9d;
/* rgb */ color: rgb(37, 74, 157);
/* oklch */ color: oklch(43.2% 0.142 263.5);
Tailwind
colors: {
  custom: {
    50: '#717bbb',
    500: '#254a9d',
    950: '#000000',
  },
}
SCSS
$custom: #254a9d;
$custom-light: #717bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#254a9d",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 157
  },
  "hsl": {
    "h": 221.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43196,
    "c": 0.14202,
    "h": 263.5
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #254A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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