#302FC8#302FC8

#302FC8 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.1% C 0.225 H 272.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#302FC8
RGBrgb(48, 47, 200)
HSLhsl(240, 62%, 48%)
HSVhsv(240, 77%, 78%)
CMYKcmyk(76%, 76.5%, 0%, 21.6%)
CIE-LABlab(31.42, 50.95, -77.80)
CIE-LCHlch(31.42, 93.00, 303.22°)
OKLaboklab(43.07% 0.0079 -0.2252)
OKLCHoklch(43.07% 0.225 272)
XYZxyz(12.6573, 6.8302, 55.2837)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FC8 #C7C82F
analogous
#2F7AC8 #302FC8 #7C2FC8
triadic
#302FC8 #C8302F #2FC830
tetradic
#302FC8 #C82F7A #C7C82F #2FC87C
square
#302FC8 #C82F7A #C7C82F #2FC87C
split-complementary
#302FC8 #C87C2F #7AC82F
monochromatic
#181865 #242396 #302FC8 #5C5CD9 #8E8DE4

Accessibility & contrast

On white

8.87
#302FC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#302FC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FC8
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FC8#FFFFFF#000000##FFFFFF
##302FC81.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302fc8;
/* rgb */ color: rgb(48, 47, 200);
/* oklch */ color: oklch(43.1% 0.225 272.0);
Tailwind
colors: {
  custom: {
    50: '#826ada',
    500: '#302fc8',
    950: '#000000',
  },
}
SCSS
$custom: #302fc8;
$custom-light: #826ada;
$custom-dark: #000000;
JSON
{
  "hex": "#302fc8",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 240.392,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43065,
    "c": 0.22535,
    "h": 272
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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