#302186#302186

#302186 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.158 H 280.7°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#302186
RGBrgb(48, 33, 134)
HSLhsl(249, 60%, 33%)
HSVhsv(249, 75%, 53%)
CMYKcmyk(64.2%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.71, 37.23, -53.90)
CIE-LCHlch(21.71, 65.51, 304.63°)
OKLaboklab(34.14% 0.0294 -0.1555)
OKLCHoklch(34.14% 0.158 280.7)
XYZxyz(6.0645, 3.4369, 22.8934)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302186 #778621
analogous
#214486 #302186 #622186
triadic
#302186 #863021 #218630
tetradic
#302186 #862144 #778621 #218662
square
#302186 #862144 #778621 #218662
split-complementary
#302186 #866221 #448621
monochromatic
#0D0924 #1E1555 #302186 #422DB7 #624ED3

Accessibility & contrast

On white

12.45
#302186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#302186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302186
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302186#FFFFFF#000000##FFFFFF
##3021861.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302186;
/* rgb */ color: rgb(48, 33, 134);
/* oklch */ color: oklch(34.1% 0.158 280.7);
Tailwind
colors: {
  custom: {
    50: '#745eaa',
    500: '#302186',
    950: '#000000',
  },
}
SCSS
$custom: #302186;
$custom-light: #745eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#302186",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 248.911,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34138,
    "c": 0.15824,
    "h": 280.7
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#302186
secondary
#A7B74C
accent
#E444CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302186

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

Preview Lab → · Contrast checker → · Palette generator →

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