#302FC7#302FC7

#302FC7 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.0% C 0.224 H 272.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#302FC7
RGBrgb(48, 47, 199)
HSLhsl(240, 62%, 48%)
HSVhsv(240, 76%, 78%)
CMYKcmyk(75.9%, 76.4%, 0%, 22%)
CIE-LABlab(31.31, 50.63, -77.39)
CIE-LCHlch(31.31, 92.48, 303.19°)
OKLaboklab(42.96% 0.0081 -0.224)
OKLCHoklch(42.96% 0.224 272.1)
XYZxyz(12.5408, 6.7836, 54.6702)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FC7 #C6C72F
analogous
#2F7AC7 #302FC7 #7C2FC7
triadic
#302FC7 #C7302F #2FC730
tetradic
#302FC7 #C72F7A #C6C72F #2FC77C
square
#302FC7 #C72F7A #C6C72F #2FC77C
split-complementary
#302FC7 #C77C2F #7AC72F
monochromatic
#181864 #242395 #302FC7 #5C5BD8 #8D8CE4

Accessibility & contrast

On white

8.91
#302FC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#302FC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FC7
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FC7#FFFFFF#000000##FFFFFF
##302FC71.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CB
Deuteranopia (green-blind)
#0042C4
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #302fc7;
/* rgb */ color: rgb(48, 47, 199);
/* oklch */ color: oklch(43.0% 0.224 272.1);
Tailwind
colors: {
  custom: {
    50: '#826ad9',
    500: '#302fc7',
    950: '#000000',
  },
}
SCSS
$custom: #302fc7;
$custom-light: #826ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#302fc7",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 199
  },
  "hsl": {
    "h": 240.395,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.42957,
    "c": 0.22418,
    "h": 272.1
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#302FC7
secondary
#CECE84
accent
#E543E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #302FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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