#302FCC#302FCC

#302FCC is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.5% C 0.230 H 271.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#302FCC
RGBrgb(48, 47, 204)
HSLhsl(240, 63%, 49%)
HSVhsv(240, 77%, 80%)
CMYKcmyk(76.5%, 77%, 0%, 20%)
CIE-LABlab(31.85, 52.22, -79.42)
CIE-LCHlch(31.85, 95.05, 303.33°)
OKLaboklab(43.5% 0.0071 -0.2299)
OKLCHoklch(43.5% 0.23 271.8)
XYZxyz(13.1308, 7.0196, 57.7779)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FCC #CBCC2F
analogous
#2F7DCC #302FCC #7F2FCC
triadic
#302FCC #CC302F #2FCC30
tetradic
#302FCC #CC2F7D #CBCC2F #2FCC7F
square
#302FCC #CC2F7D #CBCC2F #2FCC7F
split-complementary
#302FCC #CC7F2F #7DCC2F
monochromatic
#191869 #24249A #302FCC #5F5EDA #9190E5

Accessibility & contrast

On white

8.73
#302FCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#302FCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FCC
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FCC#FFFFFF#000000##FFFFFF
##302FCC1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053D0
Deuteranopia (green-blind)
#0043C9
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #302fcc;
/* rgb */ color: rgb(48, 47, 204);
/* oklch */ color: oklch(43.5% 0.230 271.8);
Tailwind
colors: {
  custom: {
    50: '#836add',
    500: '#302fcc',
    950: '#000000',
  },
}
SCSS
$custom: #302fcc;
$custom-light: #836add;
$custom-dark: #000000;
JSON
{
  "hex": "#302fcc",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 204
  },
  "hsl": {
    "h": 240.382,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.43498,
    "c": 0.23001,
    "h": 271.8
  },
  "luminance": 0.07021
}

Semantic roles & 50–950 ramp

primary
#302FCC
secondary
#D0D087
accent
#E642E5
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #302FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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