#302AB6#302AB6

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

Color values

HEX#302AB6
RGBrgb(48, 42, 182)
HSLhsl(243, 63%, 44%)
HSVhsv(243, 77%, 71%)
CMYKcmyk(73.6%, 76.9%, 0%, 28.6%)
CIE-LABlab(28.54, 47.84, -71.95)
CIE-LCHlch(28.54, 86.40, 303.62°)
OKLaboklab(40.47% 0.0135 -0.2081)
OKLCHoklch(40.47% 0.209 273.7)
XYZxyz(10.4876, 5.6606, 44.7868)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB6 #B0B62A
analogous
#2A6AB6 #302AB6 #762AB6
triadic
#302AB6 #B6302A #2AB630
tetradic
#302AB6 #B62A6A #B0B62A #2AB676
square
#302AB6 #B62A6A #B0B62A #2AB676
split-complementary
#302AB6 #B6762A #6AB62A
monochromatic
#161353 #231F84 #302AB6 #4E48D5 #7E7AE0

Accessibility & contrast

On white

9.85
#302AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#302AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB6
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB6#FFFFFF#000000##FFFFFF
##302AB61.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABA
Deuteranopia (green-blind)
#003DB4
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302ab6;
/* rgb */ color: rgb(48, 42, 182);
/* oklch */ color: oklch(40.5% 0.209 273.7);
Tailwind
colors: {
  custom: {
    50: '#7e66cd',
    500: '#302ab6',
    950: '#000000',
  },
}
SCSS
$custom: #302ab6;
$custom-light: #7e66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab6",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 242.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40466,
    "c": 0.20859,
    "h": 273.7
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#302AB6
secondary
#C5C873
accent
#E642DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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