#302886#302886

#302886 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.150 H 279.2°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#302886
RGBrgb(48, 40, 134)
HSLhsl(245, 54%, 34%)
HSVhsv(245, 70%, 53%)
CMYKcmyk(64.2%, 70.1%, 0%, 47.5%)
CIE-LABlab(23.23, 33.05, -51.42)
CIE-LCHlch(23.23, 61.13, 302.73°)
OKLaboklab(35.22% 0.024 -0.1482)
OKLCHoklch(35.22% 0.15 279.2)
XYZxyz(6.2794, 3.8667, 22.9651)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302886 #7E8628
analogous
#284F86 #302886 #5F2886
triadic
#302886 #863028 #288630
tetradic
#302886 #86284F #7E8628 #28865F
square
#302886 #86284F #7E8628 #28865F
split-complementary
#302886 #865F28 #4F8628
monochromatic
#0E0C28 #1F1A57 #302886 #4136B5 #645BCE

Accessibility & contrast

On white

11.84
#302886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302886
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302886#FFFFFF#000000##FFFFFF
##3028861.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003484
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302886;
/* rgb */ color: rgb(48, 40, 134);
/* oklch */ color: oklch(35.2% 0.150 279.2);
Tailwind
colors: {
  custom: {
    50: '#7363aa',
    500: '#302886',
    950: '#000000',
  },
}
SCSS
$custom: #302886;
$custom-light: #7363aa;
$custom-dark: #000000;
JSON
{
  "hex": "#302886",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 245.106,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35217,
    "c": 0.15017,
    "h": 279.2
  },
  "luminance": 0.03867
}

Semantic roles & 50–950 ramp

primary
#302886
secondary
#ABB357
accent
#DD4AD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302886

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

Preview Lab → · Contrast checker → · Palette generator →

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