#302DB4#302DB4

#302DB4 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.7% C 0.203 H 273.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#302DB4
RGBrgb(48, 45, 180)
HSLhsl(241, 60%, 44%)
HSVhsv(241, 75%, 71%)
CMYKcmyk(73.3%, 75%, 0%, 29.4%)
CIE-LABlab(28.90, 45.56, -70.16)
CIE-LCHlch(28.90, 83.65, 303.00°)
OKLaboklab(40.66% 0.0126 -0.203)
OKLCHoklch(40.66% 0.203 273.5)
XYZxyz(10.3928, 5.7994, 43.7428)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB4 #B1B42D
analogous
#2D6EB4 #302DB4 #742DB4
triadic
#302DB4 #B4302D #2DB430
tetradic
#302DB4 #B42D6E #B1B42D #2DB474
square
#302DB4 #B42D6E #B1B42D #2DB474
split-complementary
#302DB4 #B4742D #6EB42D
monochromatic
#161552 #232183 #302DB4 #4F4CD2 #7F7DDE

Accessibility & contrast

On white

9.72
#302DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#302DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DB4
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB4#FFFFFF#000000##FFFFFF
##302DB41.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302db4;
/* rgb */ color: rgb(48, 45, 180);
/* oklch */ color: oklch(40.7% 0.203 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d68cc',
    500: '#302db4',
    950: '#000000',
  },
}
SCSS
$custom: #302db4;
$custom-light: #7d68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302db4",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 241.333,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.20337,
    "h": 273.5
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#302DB4
secondary
#C5C776
accent
#E345E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #302DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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