#302AB9#302AB9

#302AB9 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.212 H 273.5°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#302AB9
RGBrgb(48, 42, 185)
HSLhsl(243, 63%, 45%)
HSVhsv(243, 77%, 73%)
CMYKcmyk(74.1%, 77.3%, 0%, 27.5%)
CIE-LABlab(28.87, 48.80, -73.19)
CIE-LCHlch(28.87, 87.96, 303.69°)
OKLaboklab(40.79% 0.0129 -0.2118)
OKLCHoklch(40.79% 0.212 273.5)
XYZxyz(10.8009, 5.7860, 46.4371)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB9 #B3B92A
analogous
#2A6CB9 #302AB9 #772AB9
triadic
#302AB9 #B9302A #2AB930
tetradic
#302AB9 #B92A6C #B3B92A #2AB977
square
#302AB9 #B92A6C #B3B92A #2AB977
split-complementary
#302AB9 #B9772A #6CB92A
monochromatic
#161355 #231F87 #302AB9 #504AD6 #807CE1

Accessibility & contrast

On white

9.73
#302AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#302AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB9
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB9#FFFFFF#000000##FFFFFF
##302AB91.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#003DB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #302ab9;
/* rgb */ color: rgb(48, 42, 185);
/* oklch */ color: oklch(40.8% 0.212 273.5);
Tailwind
colors: {
  custom: {
    50: '#7f66cf',
    500: '#302ab9',
    950: '#000000',
  },
}
SCSS
$custom: #302ab9;
$custom-light: #7f66cf;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab9",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 242.517,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40791,
    "c": 0.21215,
    "h": 273.5
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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