#302CB7#302CB7

#302CB7 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.208 H 273.4°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#302CB7
RGBrgb(48, 44, 183)
HSLhsl(242, 61%, 45%)
HSVhsv(242, 76%, 72%)
CMYKcmyk(73.8%, 76%, 0%, 28.2%)
CIE-LABlab(29.02, 47.08, -71.74)
CIE-LCHlch(29.02, 85.81, 303.28°)
OKLaboklab(40.84% 0.0124 -0.2076)
OKLCHoklch(40.84% 0.208 273.4)
XYZxyz(10.6640, 5.8476, 45.3572)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CB7 #B3B72C
analogous
#2C6DB7 #302CB7 #762CB7
triadic
#302CB7 #B7302C #2CB730
tetradic
#302CB7 #B72C6D #B3B72C #2CB776
square
#302CB7 #B72C6D #B3B72C #2CB776
split-complementary
#302CB7 #B7762C #6DB72C
monochromatic
#161454 #232086 #302CB7 #504CD4 #807EE0

Accessibility & contrast

On white

9.68
#302CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#302CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CB7
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CB7#FFFFFF#000000##FFFFFF
##302CB71.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302cb7;
/* rgb */ color: rgb(48, 44, 183);
/* oklch */ color: oklch(40.8% 0.208 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e67ce',
    500: '#302cb7',
    950: '#000000',
  },
}
SCSS
$custom: #302cb7;
$custom-light: #7e67ce;
$custom-dark: #000000;
JSON
{
  "hex": "#302cb7",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 241.727,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40839,
    "c": 0.20794,
    "h": 273.4
  },
  "luminance": 0.05849
}

Semantic roles & 50–950 ramp

primary
#302CB7
secondary
#C6C876
accent
#E443E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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