#302183#302183

#302183 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.154 H 281.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#302183
RGBrgb(48, 33, 131)
HSLhsl(249, 60%, 32%)
HSVhsv(249, 75%, 51%)
CMYKcmyk(63.4%, 74.8%, 0%, 48.6%)
CIE-LABlab(21.41, 36.25, -52.51)
CIE-LCHlch(21.41, 63.81, 304.62°)
OKLaboklab(33.83% 0.0301 -0.1514)
OKLCHoklch(33.83% 0.154 281.2)
XYZxyz(5.8582, 3.3544, 21.8071)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302183 #748321
analogous
#214383 #302183 #612183
triadic
#302183 #833021 #218330
tetradic
#302183 #832143 #748321 #218361
square
#302183 #832143 #748321 #218361
split-complementary
#302183 #836121 #438321
monochromatic
#0C0821 #1E1552 #302183 #422DB4 #614CD2

Accessibility & contrast

On white

12.57
#302183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302183
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302183#FFFFFF#000000##FFFFFF
##3021831.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #302183;
/* rgb */ color: rgb(48, 33, 131);
/* oklch */ color: oklch(33.8% 0.154 281.2);
Tailwind
colors: {
  custom: {
    50: '#735ea8',
    500: '#302183',
    950: '#000000',
  },
}
SCSS
$custom: #302183;
$custom-light: #735ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#302183",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 249.184,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3383,
    "c": 0.15439,
    "h": 281.2
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#302183
secondary
#A5B54B
accent
#E345CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302183

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

Preview Lab → · Contrast checker → · Palette generator →

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