#302AAA#302AAA

#302AAA is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.194 H 274.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#302AAA
RGBrgb(48, 42, 170)
HSLhsl(243, 60%, 42%)
HSVhsv(243, 75%, 67%)
CMYKcmyk(71.8%, 75.3%, 0%, 33.3%)
CIE-LABlab(27.26, 43.95, -66.89)
CIE-LCHlch(27.26, 80.03, 303.31°)
OKLaboklab(39.18% 0.016 -0.1934)
OKLCHoklch(39.18% 0.194 274.7)
XYZxyz(9.3002, 5.1857, 38.5332)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302AAA #A4AA2A
analogous
#2A64AA #302AAA #702AAA
triadic
#302AAA #AA302A #2AAA30
tetradic
#302AAA #AA2A64 #A4AA2A #2AAA70
square
#302AAA #AA2A64 #A4AA2A #2AAA70
split-complementary
#302AAA #AA702A #64AA2A
monochromatic
#141248 #221E79 #302AAA #4841D0 #7772DC

Accessibility & contrast

On white

10.31
#302AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#302AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302AAA
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302AAA#FFFFFF#000000##FFFFFF
##302AAA1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302aaa;
/* rgb */ color: rgb(48, 42, 170);
/* oklch */ color: oklch(39.2% 0.194 274.7);
Tailwind
colors: {
  custom: {
    50: '#7b66c5',
    500: '#302aaa',
    950: '#000000',
  },
}
SCSS
$custom: #302aaa;
$custom-light: #7b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#302aaa",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 242.813,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39182,
    "c": 0.19408,
    "h": 274.7
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#302AAA
secondary
#BFC36C
accent
#E444DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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