#302DB7#302DB7

#302DB7 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.0% C 0.207 H 273.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#302DB7
RGBrgb(48, 45, 183)
HSLhsl(241, 61%, 45%)
HSVhsv(241, 75%, 72%)
CMYKcmyk(73.8%, 75.4%, 0%, 28.2%)
CIE-LABlab(29.22, 46.54, -71.42)
CIE-LCHlch(29.22, 85.24, 303.09°)
OKLaboklab(40.98% 0.012 -0.2066)
OKLCHoklch(40.98% 0.207 273.3)
XYZxyz(10.7017, 5.9230, 45.3698)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB7 #B4B72D
analogous
#2D6FB7 #302DB7 #752DB7
triadic
#302DB7 #B7302D #2DB730
tetradic
#302DB7 #B72D6F #B4B72D #2DB775
square
#302DB7 #B72D6F #B4B72D #2DB775
split-complementary
#302DB7 #B7752D #6FB72D
monochromatic
#161555 #232186 #302DB7 #514ED3 #817FDF

Accessibility & contrast

On white

9.61
#302DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#302DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DB7
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB7#FFFFFF#000000##FFFFFF
##302DB71.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#003EB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302db7;
/* rgb */ color: rgb(48, 45, 183);
/* oklch */ color: oklch(41.0% 0.207 273.3);
Tailwind
colors: {
  custom: {
    50: '#7e68ce',
    500: '#302db7',
    950: '#000000',
  },
}
SCSS
$custom: #302db7;
$custom-light: #7e68ce;
$custom-dark: #000000;
JSON
{
  "hex": "#302db7",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 241.304,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40975,
    "c": 0.207,
    "h": 273.3
  },
  "luminance": 0.05924
}

Semantic roles & 50–950 ramp

primary
#302DB7
secondary
#C6C878
accent
#E444E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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