#254699#254699

#254699 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.141 H 264.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#254699
RGBrgb(37, 70, 153)
HSLhsl(223, 61%, 37%)
HSVhsv(223, 76%, 60%)
CMYKcmyk(75.8%, 54.2%, 0%, 40%)
CIE-LABlab(31.97, 18.57, -48.92)
CIE-LCHlch(31.97, 52.32, 290.79°)
OKLaboklab(42.02% -0.0132 -0.1409)
OKLCHoklch(42.02% 0.141 264.6)
XYZxyz(8.7008, 7.0726, 31.0374)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254699 #997825
analogous
#258099 #254699 #3E2599
triadic
#254699 #992546 #469925
tetradic
#254699 #992580 #997825 #25993E
square
#254699 #992580 #997825 #25993E
split-complementary
#254699 #993E25 #809925
monochromatic
#0D1936 #192F68 #254699 #315DCA #6082D9

Accessibility & contrast

On white

8.70
#254699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#254699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254699
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254699#FFFFFF#000000##FFFFFF
##2546991.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07519C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #254699;
/* rgb */ color: rgb(37, 70, 153);
/* oklch */ color: oklch(42.0% 0.141 264.6);
Tailwind
colors: {
  custom: {
    50: '#7178b8',
    500: '#254699',
    950: '#000000',
  },
}
SCSS
$custom: #254699;
$custom-light: #7178b8;
$custom-dark: #000000;
JSON
{
  "hex": "#254699",
  "rgb": {
    "r": 37,
    "g": 70,
    "b": 153
  },
  "hsl": {
    "h": 222.931,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42018,
    "c": 0.14148,
    "h": 264.6
  },
  "luminance": 0.07074
}

Semantic roles & 50–950 ramp

primary
#254699
secondary
#BEA25C
accent
#B644E4
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254699

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

Preview Lab → · Contrast checker → · Palette generator →

#254699 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva