#302CC8#302CC8

#302CC8 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.7% C 0.228 H 272.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#302CC8
RGBrgb(48, 44, 200)
HSLhsl(242, 64%, 48%)
HSVhsv(242, 78%, 78%)
CMYKcmyk(76%, 78%, 0%, 21.6%)
CIE-LABlab(30.87, 52.50, -78.70)
CIE-LCHlch(30.87, 94.60, 303.71°)
OKLaboklab(42.68% 0.009 -0.2278)
OKLCHoklch(42.68% 0.228 272.3)
XYZxyz(12.5414, 6.5985, 55.2451)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CC8 #C4C82C
analogous
#2C76C8 #302CC8 #7E2CC8
triadic
#302CC8 #C8302C #2CC830
tetradic
#302CC8 #C82C76 #C4C82C #2CC87E
square
#302CC8 #C82C76 #C4C82C #2CC87E
split-complementary
#302CC8 #C87E2C #76C82C
monochromatic
#181664 #242196 #302CC8 #5A57DA #8C89E5

Accessibility & contrast

On white

9.05
#302CC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#302CC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CC8
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CC8#FFFFFF#000000##FFFFFF
##302CC81.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302cc8;
/* rgb */ color: rgb(48, 44, 200);
/* oklch */ color: oklch(42.7% 0.228 272.3);
Tailwind
colors: {
  custom: {
    50: '#8268da',
    500: '#302cc8',
    950: '#000000',
  },
}
SCSS
$custom: #302cc8;
$custom-light: #8268da;
$custom-dark: #000000;
JSON
{
  "hex": "#302cc8",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 200
  },
  "hsl": {
    "h": 241.538,
    "s": 63.934,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42684,
    "c": 0.22796,
    "h": 272.3
  },
  "luminance": 0.066
}

Semantic roles & 50–950 ramp

primary
#302CC8
secondary
#CDCF81
accent
#E741E3
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #302CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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