#302DC8#302DC8

#302DC8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.8% C 0.227 H 272.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#302DC8
RGBrgb(48, 45, 200)
HSLhsl(241, 63%, 48%)
HSVhsv(241, 78%, 78%)
CMYKcmyk(76%, 77.5%, 0%, 21.6%)
CIE-LABlab(31.05, 51.99, -78.40)
CIE-LCHlch(31.05, 94.08, 303.55°)
OKLaboklab(42.81% 0.0086 -0.2269)
OKLCHoklch(42.81% 0.227 272.2)
XYZxyz(12.5791, 6.6739, 55.2576)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DC8 #C5C82D
analogous
#2D78C8 #302DC8 #7D2DC8
triadic
#302DC8 #C8302D #2DC830
tetradic
#302DC8 #C82D78 #C5C82D #2DC87D
square
#302DC8 #C82D78 #C5C82D #2DC87D
split-complementary
#302DC8 #C87D2D #78C82D
monochromatic
#181764 #242296 #302DC8 #5B59DA #8C8BE5

Accessibility & contrast

On white

8.99
#302DC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#302DC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DC8
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DC8#FFFFFF#000000##FFFFFF
##302DC81.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CC
Deuteranopia (green-blind)
#0041C5
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #302dc8;
/* rgb */ color: rgb(48, 45, 200);
/* oklch */ color: oklch(42.8% 0.227 272.2);
Tailwind
colors: {
  custom: {
    50: '#8269da',
    500: '#302dc8',
    950: '#000000',
  },
}
SCSS
$custom: #302dc8;
$custom-light: #8269da;
$custom-dark: #000000;
JSON
{
  "hex": "#302dc8",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 241.161,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.42808,
    "c": 0.22709,
    "h": 272.2
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#302DC8
secondary
#CDCF82
accent
#E641E3
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #302DC8

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

Preview Lab → · Contrast checker → · Palette generator →

#302DC8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva