#302BC4#302BC4

#302BC4 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.1% C 0.224 H 272.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#302BC4
RGBrgb(48, 43, 196)
HSLhsl(242, 64%, 47%)
HSVhsv(242, 78%, 77%)
CMYKcmyk(75.5%, 78.1%, 0%, 23.1%)
CIE-LABlab(30.26, 51.76, -77.38)
CIE-LCHlch(30.26, 93.09, 303.78°)
OKLaboklab(42.12% 0.0101 -0.2239)
OKLCHoklch(42.12% 0.224 272.6)
XYZxyz(12.0433, 6.3404, 52.8030)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BC4 #BFC42B
analogous
#2B73C4 #302BC4 #7D2BC4
triadic
#302BC4 #C4302B #2BC430
tetradic
#302BC4 #C42B73 #BFC42B #2BC47D
square
#302BC4 #C42B73 #BFC42B #2BC47D
split-complementary
#302BC4 #C47D2B #73C42B
monochromatic
#171560 #242092 #302BC4 #5753D9 #8885E4

Accessibility & contrast

On white

9.26
#302BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#302BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BC4
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BC4#FFFFFF#000000##FFFFFF
##302BC41.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC8
Deuteranopia (green-blind)
#0040C1
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #302bc4;
/* rgb */ color: rgb(48, 43, 196);
/* oklch */ color: oklch(42.1% 0.224 272.6);
Tailwind
colors: {
  custom: {
    50: '#8168d7',
    500: '#302bc4',
    950: '#000000',
  },
}
SCSS
$custom: #302bc4;
$custom-light: #8168d7;
$custom-dark: #000000;
JSON
{
  "hex": "#302bc4",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 196
  },
  "hsl": {
    "h": 241.961,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.22417,
    "h": 272.6
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#302BC4
secondary
#CBCE7D
accent
#E741E2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #302BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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