#302CB5#302CB5

#302CB5 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.6% C 0.206 H 273.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#302CB5
RGBrgb(48, 44, 181)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(73.5%, 75.7%, 0%, 29%)
CIE-LABlab(28.81, 46.43, -70.90)
CIE-LCHlch(28.81, 84.75, 303.22°)
OKLaboklab(40.63% 0.0129 -0.2051)
OKLCHoklch(40.63% 0.206 273.6)
XYZxyz(10.4573, 5.7649, 44.2687)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CB5 #B1B52C
analogous
#2C6DB5 #302CB5 #752CB5
triadic
#302CB5 #B5302C #2CB530
tetradic
#302CB5 #B52C6D #B1B52C #2CB575
square
#302CB5 #B52C6D #B1B52C #2CB575
split-complementary
#302CB5 #B5752C #6DB52C
monochromatic
#161453 #232084 #302CB5 #4F4BD3 #7F7CDF

Accessibility & contrast

On white

9.75
#302CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#302CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CB5
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CB5#FFFFFF#000000##FFFFFF
##302CB51.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302cb5;
/* rgb */ color: rgb(48, 44, 181);
/* oklch */ color: oklch(40.6% 0.206 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e67cc',
    500: '#302cb5',
    950: '#000000',
  },
}
SCSS
$custom: #302cb5;
$custom-light: #7e67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302cb5",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 241.752,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40626,
    "c": 0.20553,
    "h": 273.6
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#302CB5
secondary
#C5C875
accent
#E444DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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