#254C99#254C99

#254C99 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.134 H 262.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#254C99
RGBrgb(37, 76, 153)
HSLhsl(220, 61%, 37%)
HSVhsv(220, 76%, 60%)
CMYKcmyk(75.8%, 50.3%, 0%, 40%)
CIE-LABlab(33.69, 14.51, -46.13)
CIE-LCHlch(33.69, 48.36, 287.46°)
OKLaboklab(43.33% -0.0182 -0.1326)
OKLCHoklch(43.33% 0.134 262.2)
XYZxyz(9.0951, 7.8611, 31.1688)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C99 #997225
analogous
#258699 #254C99 #382599
triadic
#254C99 #99254C #4C9925
tetradic
#254C99 #992586 #997225 #259938
square
#254C99 #992586 #997225 #259938
split-complementary
#254C99 #993825 #869925
monochromatic
#0D1B36 #193468 #254C99 #3164CA #6088D9

Accessibility & contrast

On white

8.16
#254C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#254C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C99
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C99#FFFFFF#000000##FFFFFF
##254C991.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F559C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#005E6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #254c99;
/* rgb */ color: rgb(37, 76, 153);
/* oklch */ color: oklch(43.3% 0.134 262.2);
Tailwind
colors: {
  custom: {
    50: '#707db8',
    500: '#254c99',
    950: '#000000',
  },
}
SCSS
$custom: #254c99;
$custom-light: #707db8;
$custom-dark: #000000;
JSON
{
  "hex": "#254c99",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 153
  },
  "hsl": {
    "h": 219.828,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43327,
    "c": 0.13382,
    "h": 262.2
  },
  "luminance": 0.07862
}

Semantic roles & 50–950 ramp

primary
#254C99
secondary
#BE9D5C
accent
#AE44E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #254C99

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

Preview Lab → · Contrast checker → · Palette generator →

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