#302BA4#302BA4

#302BA4 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.186 H 275.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#302BA4
RGBrgb(48, 43, 164)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 74%, 64%)
CMYKcmyk(70.7%, 73.8%, 0%, 35.7%)
CIE-LABlab(26.84, 41.40, -63.96)
CIE-LCHlch(26.84, 76.19, 302.91°)
OKLaboklab(38.7% 0.0167 -0.1849)
OKLCHoklch(38.7% 0.186 275.2)
XYZxyz(8.7814, 5.0356, 35.6240)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302BA4 #9FA42B
analogous
#2B63A4 #302BA4 #6C2BA4
triadic
#302BA4 #A4302B #2BA430
tetradic
#302BA4 #A42B63 #9FA42B #2BA46C
square
#302BA4 #A42B63 #9FA42B #2BA46C
split-complementary
#302BA4 #A46C2B #63A42B
monochromatic
#141243 #221E74 #302BA4 #453FCD #7470D9

Accessibility & contrast

On white

10.46
#302BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#302BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302BA4
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302BA4#FFFFFF#000000##FFFFFF
##302BA41.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302ba4;
/* rgb */ color: rgb(48, 43, 164);
/* oklch */ color: oklch(38.7% 0.186 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a66c0',
    500: '#302ba4',
    950: '#000000',
  },
}
SCSS
$custom: #302ba4;
$custom-light: #7a66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#302ba4",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 242.479,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.18565,
    "h": 275.2
  },
  "luminance": 0.05036
}

Semantic roles & 50–950 ramp

primary
#302BA4
secondary
#BDC16A
accent
#E246DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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