#302DB2#302DB2

#302DB2 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.201 H 273.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#302DB2
RGBrgb(48, 45, 178)
HSLhsl(241, 60%, 44%)
HSVhsv(241, 75%, 70%)
CMYKcmyk(73%, 74.7%, 0%, 30.2%)
CIE-LABlab(28.69, 44.90, -69.31)
CIE-LCHlch(28.69, 82.59, 302.93°)
OKLaboklab(40.45% 0.013 -0.2005)
OKLCHoklch(40.45% 0.201 273.7)
XYZxyz(10.1905, 5.7185, 42.6776)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB2 #AFB22D
analogous
#2D6CB2 #302DB2 #722DB2
triadic
#302DB2 #B2302D #2DB230
tetradic
#302DB2 #B22D6C #AFB22D #2DB272
square
#302DB2 #B22D6C #AFB22D #2DB272
split-complementary
#302DB2 #B2722D #6CB22D
monochromatic
#161450 #232181 #302DB2 #4E4BD1 #7E7CDE

Accessibility & contrast

On white

9.79
#302DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#302DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DB2
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB2#FFFFFF#000000##FFFFFF
##302DB21.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302db2;
/* rgb */ color: rgb(48, 45, 178);
/* oklch */ color: oklch(40.4% 0.201 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d68ca',
    500: '#302db2',
    950: '#000000',
  },
}
SCSS
$custom: #302db2;
$custom-light: #7d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302db2",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 241.353,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40446,
    "c": 0.20094,
    "h": 273.7
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#302DB2
secondary
#C4C675
accent
#E345DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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