#302182#302182

#302182 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.153 H 281.4°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#302182
RGBrgb(48, 33, 130)
HSLhsl(249, 60%, 32%)
HSVhsv(249, 75%, 51%)
CMYKcmyk(63.1%, 74.6%, 0%, 49%)
CIE-LABlab(21.31, 35.93, -52.05)
CIE-LCHlch(21.31, 63.24, 304.61°)
OKLaboklab(33.73% 0.0303 -0.1501)
OKLCHoklch(33.73% 0.153 281.4)
XYZxyz(5.7908, 3.3274, 21.4519)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302182 #738221
analogous
#214382 #302182 #612182
triadic
#302182 #823021 #218230
tetradic
#302182 #822143 #738221 #218261
square
#302182 #822143 #738221 #218261
split-complementary
#302182 #826121 #438221
monochromatic
#0C0820 #1E1551 #302182 #422DB3 #614CD2

Accessibility & contrast

On white

12.61
#302182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#302182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302182
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302182#FFFFFF#000000##FFFFFF
##3021821.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #302182;
/* rgb */ color: rgb(48, 33, 130);
/* oklch */ color: oklch(33.7% 0.153 281.4);
Tailwind
colors: {
  custom: {
    50: '#735ea7',
    500: '#302182',
    950: '#000000',
  },
}
SCSS
$custom: #302182;
$custom-light: #735ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#302182",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 249.278,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33728,
    "c": 0.1531,
    "h": 281.4
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#302182
secondary
#A4B44A
accent
#E345CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302182

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

Preview Lab → · Contrast checker → · Palette generator →

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