#254C91#254C91

#254C91 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.7% C 0.122 H 260.8°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#254C91
RGBrgb(37, 76, 145)
HSLhsl(218, 59%, 36%)
HSVhsv(218, 74%, 57%)
CMYKcmyk(74.5%, 47.6%, 0%, 43.1%)
CIE-LABlab(33.15, 11.37, -42.15)
CIE-LCHlch(33.15, 43.66, 285.10°)
OKLaboklab(42.74% -0.0195 -0.1208)
OKLCHoklch(42.74% 0.122 260.8)
XYZxyz(8.4564, 7.6056, 27.8049)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C91 #916A25
analogous
#258291 #254C91 #342591
triadic
#254C91 #91254C #4C9125
tetradic
#254C91 #912582 #916A25 #259134
square
#254C91 #912582 #916A25 #259134
split-complementary
#254C91 #913425 #829125
monochromatic
#0C192F #193260 #254C91 #3166C2 #5B87D5

Accessibility & contrast

On white

8.33
#254C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254C91
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C91#FFFFFF#000000##FFFFFF
##254C911.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285394
Deuteranopia (green-blind)
#0E4990
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #254c91;
/* rgb */ color: rgb(37, 76, 145);
/* oklch */ color: oklch(42.7% 0.122 260.8);
Tailwind
colors: {
  custom: {
    50: '#6f7db2',
    500: '#254c91',
    950: '#000000',
  },
}
SCSS
$custom: #254c91;
$custom-light: #6f7db2;
$custom-dark: #000000;
JSON
{
  "hex": "#254c91",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 145
  },
  "hsl": {
    "h": 218.333,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42735,
    "c": 0.12241,
    "h": 260.8
  },
  "luminance": 0.07607
}

Semantic roles & 50–950 ramp

primary
#254C91
secondary
#BA9758
accent
#AA45E3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #254C91

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

Preview Lab → · Contrast checker → · Palette generator →

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