#302196#302196

#302196 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.178 H 278.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#302196
RGBrgb(48, 33, 150)
HSLhsl(248, 64%, 36%)
HSVhsv(248, 78%, 59%)
CMYKcmyk(68%, 78%, 0%, 41.2%)
CIE-LABlab(23.40, 42.39, -61.08)
CIE-LCHlch(23.40, 74.35, 304.76°)
OKLaboklab(35.83% 0.0255 -0.1764)
OKLCHoklch(35.83% 0.178 278.2)
XYZxyz(7.2660, 3.9175, 29.2215)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302196 #879621
analogous
#214C96 #302196 #6A2196
triadic
#302196 #963021 #219630
tetradic
#302196 #96214C #879621 #21966A
square
#302196 #96214C #879621 #21966A
split-complementary
#302196 #966A21 #4C9621
monochromatic
#100B32 #201664 #302196 #402CC8 #6857DA

Accessibility & contrast

On white

11.77
#302196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302196
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302196#FFFFFF#000000##FFFFFF
##3021961.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302196;
/* rgb */ color: rgb(48, 33, 150);
/* oklch */ color: oklch(35.8% 0.178 278.2);
Tailwind
colors: {
  custom: {
    50: '#785fb6',
    500: '#302196',
    950: '#000000',
  },
}
SCSS
$custom: #302196;
$custom-light: #785fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#302196",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 247.692,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35827,
    "c": 0.17826,
    "h": 278.2
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#302196
secondary
#B1BE55
accent
#E741D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302196

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

Preview Lab → · Contrast checker → · Palette generator →

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