#302096#302096

#302096 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.179 H 278.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#302096
RGBrgb(48, 32, 150)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(68%, 78.7%, 0%, 41.2%)
CIE-LABlab(23.21, 42.92, -61.38)
CIE-LCHlch(23.21, 74.90, 304.96°)
OKLaboklab(35.7% 0.026 -0.1773)
OKLCHoklch(35.7% 0.179 278.3)
XYZxyz(7.2387, 3.8628, 29.2124)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302096 #869620
analogous
#204B96 #302096 #6B2096
triadic
#302096 #963020 #209630
tetradic
#302096 #96204B #869620 #20966B
square
#302096 #96204B #869620 #20966B
split-complementary
#302096 #966B20 #4B9620
monochromatic
#100A31 #201564 #302096 #402BC8 #6856DB

Accessibility & contrast

On white

11.85
#302096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#302096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302096
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302096#FFFFFF#000000##FFFFFF
##3020961.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302096;
/* rgb */ color: rgb(48, 32, 150);
/* oklch */ color: oklch(35.7% 0.179 278.3);
Tailwind
colors: {
  custom: {
    50: '#785fb6',
    500: '#302096',
    950: '#000000',
  },
}
SCSS
$custom: #302096;
$custom-light: #785fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#302096",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 248.136,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.17921,
    "h": 278.3
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#302096
secondary
#B0BE53
accent
#E840D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302096

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

Preview Lab → · Contrast checker → · Palette generator →

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