#302386#302386

#302386 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.156 H 280.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#302386
RGBrgb(48, 35, 134)
HSLhsl(248, 59%, 33%)
HSVhsv(248, 74%, 53%)
CMYKcmyk(64.2%, 73.9%, 0%, 47.5%)
CIE-LABlab(22.13, 36.08, -53.22)
CIE-LCHlch(22.13, 64.30, 304.13°)
OKLaboklab(34.43% 0.0279 -0.1535)
OKLCHoklch(34.43% 0.156 280.3)
XYZxyz(6.1217, 3.5512, 22.9125)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302386 #798623
analogous
#234786 #302386 #612386
triadic
#302386 #863023 #238630
tetradic
#302386 #862347 #798623 #238661
square
#302386 #862347 #798623 #238661
split-complementary
#302386 #866123 #478623
monochromatic
#0D0A25 #1F1655 #302386 #4130B7 #6252D2

Accessibility & contrast

On white

12.28
#302386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#302386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302386
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302386#FFFFFF#000000##FFFFFF
##3023861.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302386;
/* rgb */ color: rgb(48, 35, 134);
/* oklch */ color: oklch(34.4% 0.156 280.3);
Tailwind
colors: {
  custom: {
    50: '#7460aa',
    500: '#302386',
    950: '#000000',
  },
}
SCSS
$custom: #302386;
$custom-light: #7460aa;
$custom-dark: #000000;
JSON
{
  "hex": "#302386",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 247.879,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34432,
    "c": 0.15602,
    "h": 280.3
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#302386
secondary
#A8B54F
accent
#E246CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302386

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

Preview Lab → · Contrast checker → · Palette generator →

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