#253178#253178

#253178 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.121 H 271.4°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#253178
RGBrgb(37, 49, 120)
HSLhsl(231, 53%, 31%)
HSVhsv(231, 69%, 47%)
CMYKcmyk(69.2%, 59.2%, 0%, 52.9%)
CIE-LABlab(23.49, 20.21, -42.19)
CIE-LCHlch(23.49, 46.77, 295.59°)
OKLaboklab(34.82% 0.0029 -0.1214)
OKLCHoklch(34.82% 0.121 271.4)
XYZxyz(5.2503, 3.9455, 18.2505)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253178 #786C25
analogous
#255A78 #253178 #422578
triadic
#253178 #782531 #317825
tetradic
#253178 #78255A #786C25 #257842
square
#253178 #78255A #786C25 #257842
split-complementary
#253178 #784225 #5A7825
monochromatic
#080B1A #171E49 #253178 #3344A7 #4F60C9

Accessibility & contrast

On white

11.74
#253178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#253178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253178
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253178#FFFFFF#000000##FFFFFF
##2531781.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #253178;
/* rgb */ color: rgb(37, 49, 120);
/* oklch */ color: oklch(34.8% 0.121 271.4);
Tailwind
colors: {
  custom: {
    50: '#6a68a0',
    500: '#253178',
    950: '#000000',
  },
}
SCSS
$custom: #253178;
$custom-light: #6a68a0;
$custom-dark: #000000;
JSON
{
  "hex": "#253178",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 231.325,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34824,
    "c": 0.12144,
    "h": 271.4
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#253178
secondary
#AA9D4E
accent
#C74CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #253178

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

Preview Lab → · Contrast checker → · Palette generator →

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