#302AB3#302AB3

#302AB3 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.205 H 274.0°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#302AB3
RGBrgb(48, 42, 179)
HSLhsl(243, 62%, 43%)
HSVhsv(243, 77%, 70%)
CMYKcmyk(73.2%, 76.5%, 0%, 29.8%)
CIE-LABlab(28.22, 46.87, -70.70)
CIE-LCHlch(28.22, 84.82, 303.55°)
OKLaboklab(40.14% 0.0142 -0.2045)
OKLCHoklch(40.14% 0.205 274)
XYZxyz(10.1809, 5.5380, 43.1715)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB3 #ADB32A
analogous
#2A68B3 #302AB3 #742AB3
triadic
#302AB3 #B3302A #2AB330
tetradic
#302AB3 #B32A68 #ADB32A #2AB374
square
#302AB3 #B32A68 #ADB32A #2AB374
split-complementary
#302AB3 #B3742A #68B32A
monochromatic
#151350 #231E81 #302AB3 #4D46D4 #7D78DF

Accessibility & contrast

On white

9.96
#302AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#302AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB3
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB3#FFFFFF#000000##FFFFFF
##302AB31.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302ab3;
/* rgb */ color: rgb(48, 42, 179);
/* oklch */ color: oklch(40.1% 0.205 274.0);
Tailwind
colors: {
  custom: {
    50: '#7d66cb',
    500: '#302ab3',
    950: '#000000',
  },
}
SCSS
$custom: #302ab3;
$custom-light: #7d66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab3",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 242.628,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40142,
    "c": 0.205,
    "h": 274
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#302AB3
secondary
#C3C772
accent
#E543DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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