#302AB5#302AB5

#302AB5 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.207 H 273.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#302AB5
RGBrgb(48, 42, 181)
HSLhsl(243, 62%, 44%)
HSVhsv(243, 77%, 71%)
CMYKcmyk(73.5%, 76.8%, 0%, 29%)
CIE-LABlab(28.43, 47.52, -71.53)
CIE-LCHlch(28.43, 85.87, 303.59°)
OKLaboklab(40.36% 0.0137 -0.2069)
OKLCHoklch(40.36% 0.207 273.8)
XYZxyz(10.3846, 5.6195, 44.2445)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AB5 #AFB52A
analogous
#2A69B5 #302AB5 #752AB5
triadic
#302AB5 #B5302A #2AB530
tetradic
#302AB5 #B52A69 #AFB52A #2AB575
square
#302AB5 #B52A69 #AFB52A #2AB575
split-complementary
#302AB5 #B5752A #69B52A
monochromatic
#161352 #231E83 #302AB5 #4E48D4 #7E79E0

Accessibility & contrast

On white

9.89
#302AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#302AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AB5
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AB5#FFFFFF#000000##FFFFFF
##302AB51.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B9
Deuteranopia (green-blind)
#003CB3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #302ab5;
/* rgb */ color: rgb(48, 42, 181);
/* oklch */ color: oklch(40.4% 0.207 273.8);
Tailwind
colors: {
  custom: {
    50: '#7e66cd',
    500: '#302ab5',
    950: '#000000',
  },
}
SCSS
$custom: #302ab5;
$custom-light: #7e66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#302ab5",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 242.59,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.2074,
    "h": 273.8
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#302AB5
secondary
#C4C873
accent
#E542DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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