#302180#302180

#302180 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.151 H 281.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#302180
RGBrgb(48, 33, 128)
HSLhsl(249, 59%, 32%)
HSVhsv(249, 74%, 50%)
CMYKcmyk(62.5%, 74.2%, 0%, 49.8%)
CIE-LABlab(21.11, 35.27, -51.11)
CIE-LCHlch(21.11, 62.10, 304.61°)
OKLaboklab(33.53% 0.0307 -0.1473)
OKLCHoklch(33.53% 0.151 281.8)
XYZxyz(5.6578, 3.2742, 20.7517)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302180 #718021
analogous
#214280 #302180 #602180
triadic
#302180 #803021 #218030
tetradic
#302180 #802142 #718021 #218060
square
#302180 #802142 #718021 #218060
split-complementary
#302180 #806021 #428021
monochromatic
#0C081F #1E144F #302180 #422EB1 #604BD1

Accessibility & contrast

On white

12.69
#302180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302180
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302180#FFFFFF#000000##FFFFFF
##3021801.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #302180;
/* rgb */ color: rgb(48, 33, 128);
/* oklch */ color: oklch(33.5% 0.151 281.8);
Tailwind
colors: {
  custom: {
    50: '#735ea6',
    500: '#302180',
    950: '#000000',
  },
}
SCSS
$custom: #302180;
$custom-light: #735ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#302180",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 249.474,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33526,
    "c": 0.15051,
    "h": 281.8
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#302180
secondary
#A2B34A
accent
#E246C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #302180

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

Preview Lab → · Contrast checker → · Palette generator →

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