#302DB1#302DB1

#302DB1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.200 H 273.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#302DB1
RGBrgb(48, 45, 177)
HSLhsl(241, 59%, 44%)
HSVhsv(241, 75%, 69%)
CMYKcmyk(72.9%, 74.6%, 0%, 30.6%)
CIE-LABlab(28.59, 44.57, -68.89)
CIE-LCHlch(28.59, 82.05, 302.90°)
OKLaboklab(40.34% 0.0132 -0.1993)
OKLCHoklch(40.34% 0.2 273.8)
XYZxyz(10.0905, 5.6785, 42.1507)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB1 #AEB12D
analogous
#2D6CB1 #302DB1 #722DB1
triadic
#302DB1 #B1302D #2DB130
tetradic
#302DB1 #B12D6C #AEB12D #2DB172
square
#302DB1 #B12D6C #AEB12D #2DB172
split-complementary
#302DB1 #B1722D #6CB12D
monochromatic
#16144F #232180 #302DB1 #4D4AD1 #7D7BDD

Accessibility & contrast

On white

9.83
#302DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302DB1
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB1#FFFFFF#000000##FFFFFF
##302DB11.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302db1;
/* rgb */ color: rgb(48, 45, 177);
/* oklch */ color: oklch(40.3% 0.200 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d68ca',
    500: '#302db1',
    950: '#000000',
  },
}
SCSS
$custom: #302db1;
$custom-light: #7d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#302db1",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 241.364,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.19971,
    "h": 273.8
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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