#302CA5#302CA5

#302CA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.186 H 274.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#302CA5
RGBrgb(48, 44, 165)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 73%, 65%)
CMYKcmyk(70.9%, 73.3%, 0%, 35.3%)
CIE-LABlab(27.15, 41.15, -64.05)
CIE-LCHlch(27.15, 76.13, 302.72°)
OKLaboklab(38.95% 0.0159 -0.1852)
OKLCHoklch(38.95% 0.186 274.9)
XYZxyz(8.9089, 5.1455, 36.1137)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA5 #A1A52C
analogous
#2C64A5 #302CA5 #6C2CA5
triadic
#302CA5 #A5302C #2CA530
tetradic
#302CA5 #A52C64 #A1A52C #2CA56C
square
#302CA5 #A52C64 #A1A52C #2CA56C
split-complementary
#302CA5 #A56C2C #64A52C
monochromatic
#141244 #221F75 #302CA5 #4642CD #7572D9

Accessibility & contrast

On white

10.35
#302CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#302CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CA5
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA5#FFFFFF#000000##FFFFFF
##302CA51.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302ca5;
/* rgb */ color: rgb(48, 44, 165);
/* oklch */ color: oklch(38.9% 0.186 274.9);
Tailwind
colors: {
  custom: {
    50: '#7a67c1',
    500: '#302ca5',
    950: '#000000',
  },
}
SCSS
$custom: #302ca5;
$custom-light: #7a67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca5",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 241.983,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38947,
    "c": 0.18586,
    "h": 274.9
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#302CA5
secondary
#BEC16C
accent
#E147DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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