#302DB5#302DB5

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

Color values

HEX#302DB5
RGBrgb(48, 45, 181)
HSLhsl(241, 60%, 44%)
HSVhsv(241, 75%, 71%)
CMYKcmyk(73.5%, 75.1%, 0%, 29%)
CIE-LABlab(29.01, 45.88, -70.58)
CIE-LCHlch(29.01, 84.18, 303.03°)
OKLaboklab(40.76% 0.0124 -0.2042)
OKLCHoklch(40.76% 0.205 273.5)
XYZxyz(10.4950, 5.8403, 44.2813)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB5 #B2B52D
analogous
#2D6EB5 #302DB5 #742DB5
triadic
#302DB5 #B5302D #2DB530
tetradic
#302DB5 #B52D6E #B2B52D #2DB574
square
#302DB5 #B52D6E #B2B52D #2DB574
split-complementary
#302DB5 #B5742D #6EB52D
monochromatic
#161553 #232184 #302DB5 #504DD3 #807EDF

Accessibility & contrast

On white

9.69
#302DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302DB5
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB5#FFFFFF#000000##FFFFFF
##302DB51.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#003EB3
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302db5;
/* rgb */ color: rgb(48, 45, 181);
/* oklch */ color: oklch(40.8% 0.205 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e68cc',
    500: '#302db5',
    950: '#000000',
  },
}
SCSS
$custom: #302db5;
$custom-light: #7e68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#302db5",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 241.324,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40763,
    "c": 0.20459,
    "h": 273.5
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#302DB5
secondary
#C6C776
accent
#E344E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #302DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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