#302CB2#302CB2

#302CB2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.3% C 0.202 H 273.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#302CB2
RGBrgb(48, 44, 178)
HSLhsl(242, 60%, 44%)
HSVhsv(242, 75%, 70%)
CMYKcmyk(73%, 75.3%, 0%, 30.2%)
CIE-LABlab(28.49, 45.46, -69.64)
CIE-LCHlch(28.49, 83.16, 303.13°)
OKLaboklab(40.31% 0.0135 -0.2015)
OKLCHoklch(40.31% 0.202 273.8)
XYZxyz(10.1528, 5.6431, 42.6650)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CB2 #AEB22C
analogous
#2C6BB2 #302CB2 #732CB2
triadic
#302CB2 #B2302C #2CB230
tetradic
#302CB2 #B22C6B #AEB22C #2CB273
square
#302CB2 #B22C6B #AEB22C #2CB273
split-complementary
#302CB2 #B2732C #6BB22C
monochromatic
#161450 #232081 #302CB2 #4D49D2 #7D7ADE

Accessibility & contrast

On white

9.86
#302CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#302CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CB2
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CB2#FFFFFF#000000##FFFFFF
##302CB21.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302cb2;
/* rgb */ color: rgb(48, 44, 178);
/* oklch */ color: oklch(40.3% 0.202 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d67ca',
    500: '#302cb2',
    950: '#000000',
  },
}
SCSS
$custom: #302cb2;
$custom-light: #7d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302cb2",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 241.791,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40307,
    "c": 0.20191,
    "h": 273.8
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#302CB2
secondary
#C4C673
accent
#E444DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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