#302CA4#302CA4

#302CA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.185 H 275.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#302CA4
RGBrgb(48, 44, 164)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 73%, 64%)
CMYKcmyk(70.7%, 73.2%, 0%, 35.7%)
CIE-LABlab(27.04, 40.82, -63.62)
CIE-LCHlch(27.04, 75.59, 302.69°)
OKLaboklab(38.85% 0.0161 -0.1839)
OKLCHoklch(38.85% 0.185 275)
XYZxyz(8.8182, 5.1092, 35.6362)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA4 #A0A42C
analogous
#2C64A4 #302CA4 #6C2CA4
triadic
#302CA4 #A4302C #2CA430
tetradic
#302CA4 #A42C64 #A0A42C #2CA46C
square
#302CA4 #A42C64 #A0A42C #2CA46C
split-complementary
#302CA4 #A46C2C #64A42C
monochromatic
#141243 #221F74 #302CA4 #4641CC #7571D9

Accessibility & contrast

On white

10.39
#302CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#302CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CA4
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA4#FFFFFF#000000##FFFFFF
##302CA41.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302ca4;
/* rgb */ color: rgb(48, 44, 164);
/* oklch */ color: oklch(38.8% 0.185 275.0);
Tailwind
colors: {
  custom: {
    50: '#7a67c0',
    500: '#302ca4',
    950: '#000000',
  },
}
SCSS
$custom: #302ca4;
$custom-light: #7a67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca4",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 242,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.18461,
    "h": 275
  },
  "luminance": 0.0511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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