#302CA1#302CA1

#302CA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.181 H 275.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#302CA1
RGBrgb(48, 44, 161)
HSLhsl(242, 57%, 40%)
HSVhsv(242, 73%, 63%)
CMYKcmyk(70.2%, 72.7%, 0%, 36.9%)
CIE-LABlab(26.74, 39.81, -62.30)
CIE-LCHlch(26.74, 73.93, 302.58°)
OKLaboklab(38.54% 0.0166 -0.1801)
OKLCHoklch(38.54% 0.181 275.3)
XYZxyz(8.5505, 5.0022, 34.2262)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA1 #9DA12C
analogous
#2C63A1 #302CA1 #6A2CA1
triadic
#302CA1 #A1302C #2CA130
tetradic
#302CA1 #A12C63 #9DA12C #2CA16A
square
#302CA1 #A12C63 #9DA12C #2CA16A
split-complementary
#302CA1 #A16A2C #63A12C
monochromatic
#131241 #221F71 #302CA1 #4440CB #7370D8

Accessibility & contrast

On white

10.50
#302CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#302CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CA1
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA1#FFFFFF#000000##FFFFFF
##302CA11.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302ca1;
/* rgb */ color: rgb(48, 44, 161);
/* oklch */ color: oklch(38.5% 0.181 275.3);
Tailwind
colors: {
  custom: {
    50: '#7966be',
    500: '#302ca1',
    950: '#000000',
  },
}
SCSS
$custom: #302ca1;
$custom-light: #7966be;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca1",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 242.051,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38537,
    "c": 0.18083,
    "h": 275.3
  },
  "luminance": 0.05003
}

Semantic roles & 50–950 ramp

primary
#302CA1
secondary
#BCBF6A
accent
#E047DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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