#252178#252178

#252178 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.142 H 276.6°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#252178
RGBrgb(37, 33, 120)
HSLhsl(243, 57%, 30%)
HSVhsv(243, 73%, 47%)
CMYKcmyk(69.2%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.38, 30.98, -48.90)
CIE-LCHlch(19.38, 57.89, 302.35°)
OKLaboklab(31.81% 0.0165 -0.1412)
OKLCHoklch(31.81% 0.142 276.6)
XYZxyz(4.6959, 2.8367, 18.0657)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252178 #747821
analogous
#214878 #252178 #512178
triadic
#252178 #782521 #217825
tetradic
#252178 #782148 #747821 #217851
square
#252178 #782148 #747821 #217851
split-complementary
#252178 #785121 #487821
monochromatic
#070718 #161448 #252178 #342EA8 #4D47CC

Accessibility & contrast

On white

13.40
#252178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#252178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252178
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252178#FFFFFF#000000##FFFFFF
##2521781.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #252178;
/* rgb */ color: rgb(37, 33, 120);
/* oklch */ color: oklch(31.8% 0.142 276.6);
Tailwind
colors: {
  custom: {
    50: '#6c5da0',
    500: '#252178',
    950: '#000000',
  },
}
SCSS
$custom: #252178;
$custom-light: #6c5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#252178",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 242.759,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.31808,
    "c": 0.14216,
    "h": 276.6
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#252178
secondary
#A7AB4A
accent
#E048D9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #252178

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

Preview Lab → · Contrast checker → · Palette generator →

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