#302181#302181

#302181 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.152 H 281.6°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#302181
RGBrgb(48, 33, 129)
HSLhsl(249, 59%, 32%)
HSVhsv(249, 74%, 51%)
CMYKcmyk(62.8%, 74.4%, 0%, 49.4%)
CIE-LABlab(21.21, 35.60, -51.58)
CIE-LCHlch(21.21, 62.67, 304.61°)
OKLaboklab(33.63% 0.0305 -0.1487)
OKLCHoklch(33.63% 0.152 281.6)
XYZxyz(5.7240, 3.3007, 21.1001)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302181 #728121
analogous
#214281 #302181 #602181
triadic
#302181 #813021 #218130
tetradic
#302181 #812142 #728121 #218160
square
#302181 #812142 #728121 #218160
split-complementary
#302181 #816021 #428121
monochromatic
#0C0820 #1E1550 #302181 #422DB2 #604BD1

Accessibility & contrast

On white

12.65
#302181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#302181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302181
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302181#FFFFFF#000000##FFFFFF
##3021811.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #302181;
/* rgb */ color: rgb(48, 33, 129);
/* oklch */ color: oklch(33.6% 0.152 281.6);
Tailwind
colors: {
  custom: {
    50: '#735ea7',
    500: '#302181',
    950: '#000000',
  },
}
SCSS
$custom: #302181;
$custom-light: #735ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#302181",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 249.375,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33627,
    "c": 0.15181,
    "h": 281.6
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#302181
secondary
#A3B44A
accent
#E245CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #302181

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

Preview Lab → · Contrast checker → · Palette generator →

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