#302AC8#302AC8

#302AC8 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.4% C 0.230 H 272.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#302AC8
RGBrgb(48, 42, 200)
HSLhsl(242, 65%, 47%)
HSVhsv(242, 79%, 78%)
CMYKcmyk(76%, 79%, 0%, 21.6%)
CIE-LABlab(30.53, 53.51, -79.27)
CIE-LCHlch(30.53, 95.64, 304.02°)
OKLaboklab(42.44% 0.0096 -0.2294)
OKLCHoklch(42.44% 0.23 272.4)
XYZxyz(12.4687, 6.4531, 55.2208)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AC8 #C2C82A
analogous
#2A73C8 #302AC8 #7F2AC8
triadic
#302AC8 #C8302A #2AC830
tetradic
#302AC8 #C82A73 #C2C82A #2AC87F
square
#302AC8 #C82A73 #C2C82A #2AC87F
split-complementary
#302AC8 #C87F2A #73C82A
monochromatic
#181563 #241F95 #302AC8 #5954DB #8A87E6

Accessibility & contrast

On white

9.17
#302AC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#302AC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AC8
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AC8#FFFFFF#000000##FFFFFF
##302AC81.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCC
Deuteranopia (green-blind)
#0040C5
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #302ac8;
/* rgb */ color: rgb(48, 42, 200);
/* oklch */ color: oklch(42.4% 0.230 272.4);
Tailwind
colors: {
  custom: {
    50: '#8267da',
    500: '#302ac8',
    950: '#000000',
  },
}
SCSS
$custom: #302ac8;
$custom-light: #8267da;
$custom-dark: #000000;
JSON
{
  "hex": "#302ac8",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 200
  },
  "hsl": {
    "h": 242.278,
    "s": 65.289,
    "l": 47.451
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.22962,
    "h": 272.4
  },
  "luminance": 0.06454
}

Semantic roles & 50–950 ramp

primary
#302AC8
secondary
#CCCF7F
accent
#E840E2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #302AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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