#302ED7#302ED7

#302ED7 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.6% C 0.243 H 271.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#302ED7
RGBrgb(48, 46, 215)
HSLhsl(241, 68%, 51%)
HSVhsv(241, 79%, 84%)
CMYKcmyk(77.7%, 78.6%, 0%, 15.7%)
CIE-LABlab(32.89, 56.17, -84.07)
CIE-LCHlch(32.89, 101.11, 303.75°)
OKLaboklab(44.58% 0.0052 -0.2434)
OKLCHoklch(44.58% 0.243 271.2)
XYZxyz(14.4575, 7.4871, 64.9600)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302ED7 #D5D72E
analogous
#2E80D7 #302ED7 #842ED7
triadic
#302ED7 #D7302E #2ED730
tetradic
#302ED7 #D72E80 #D5D72E #2ED784
square
#302ED7 #D72E80 #D5D72E #2ED784
split-complementary
#302ED7 #D7842E #80D72E
monochromatic
#171674 #2220A8 #302ED7 #6361E1 #9695EB

Accessibility & contrast

On white

8.41
#302ED7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#302ED7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302ED7
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302ED7#FFFFFF#000000##FFFFFF
##302ED71.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056DC
Deuteranopia (green-blind)
#0045D4
Tritanopia (blue-blind)
#006283
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #302ed7;
/* rgb */ color: rgb(48, 46, 215);
/* oklch */ color: oklch(44.6% 0.243 271.2);
Tailwind
colors: {
  custom: {
    50: '#856ae5',
    500: '#302ed7',
    950: '#000000',
  },
}
SCSS
$custom: #302ed7;
$custom-light: #856ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#302ed7",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 240.71,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.44581,
    "c": 0.24345,
    "h": 271.2
  },
  "luminance": 0.07489
}

Semantic roles & 50–950 ramp

primary
#302ED7
secondary
#D5D68B
accent
#EB3DE9
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #302ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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