#302DB3#302DB3

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

Color values

HEX#302DB3
RGBrgb(48, 45, 179)
HSLhsl(241, 60%, 44%)
HSVhsv(241, 75%, 70%)
CMYKcmyk(73.2%, 74.9%, 0%, 29.8%)
CIE-LABlab(28.80, 45.23, -69.74)
CIE-LCHlch(28.80, 83.12, 302.97°)
OKLaboklab(40.55% 0.0128 -0.2018)
OKLCHoklch(40.55% 0.202 273.6)
XYZxyz(10.2913, 5.7588, 43.2083)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DB3 #B0B32D
analogous
#2D6DB3 #302DB3 #732DB3
triadic
#302DB3 #B3302D #2DB330
tetradic
#302DB3 #B32D6D #B0B32D #2DB373
square
#302DB3 #B32D6D #B0B32D #2DB373
split-complementary
#302DB3 #B3732D #6DB32D
monochromatic
#161451 #232182 #302DB3 #4E4BD2 #7E7CDE

Accessibility & contrast

On white

9.76
#302DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302DB3
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DB3#FFFFFF#000000##FFFFFF
##302DB31.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302db3;
/* rgb */ color: rgb(48, 45, 179);
/* oklch */ color: oklch(40.6% 0.202 273.6);
Tailwind
colors: {
  custom: {
    50: '#7d68cb',
    500: '#302db3',
    950: '#000000',
  },
}
SCSS
$custom: #302db3;
$custom-light: #7d68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#302db3",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 241.343,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40552,
    "c": 0.20215,
    "h": 273.6
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#302DB3
secondary
#C5C775
accent
#E345DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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