#302CA8#302CA8

#302CA8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.190 H 274.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#302CA8
RGBrgb(48, 44, 168)
HSLhsl(242, 58%, 42%)
HSVhsv(242, 74%, 66%)
CMYKcmyk(71.4%, 73.8%, 0%, 34.1%)
CIE-LABlab(27.45, 42.16, -65.36)
CIE-LCHlch(27.45, 77.77, 302.82°)
OKLaboklab(39.26% 0.0154 -0.189)
OKLCHoklch(39.26% 0.19 274.6)
XYZxyz(9.1851, 5.2560, 37.5686)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA8 #A4A82C
analogous
#2C66A8 #302CA8 #6E2CA8
triadic
#302CA8 #A8302C #2CA830
tetradic
#302CA8 #A82C66 #A4A82C #2CA86E
square
#302CA8 #A82C66 #A4A82C #2CA86E
split-complementary
#302CA8 #A86E2C #66A82C
monochromatic
#141347 #221F78 #302CA8 #4843CE #7774DB

Accessibility & contrast

On white

10.24
#302CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#302CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CA8
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA8#FFFFFF#000000##FFFFFF
##302CA81.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302ca8;
/* rgb */ color: rgb(48, 44, 168);
/* oklch */ color: oklch(39.3% 0.190 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b67c3',
    500: '#302ca8',
    950: '#000000',
  },
}
SCSS
$custom: #302ca8;
$custom-light: #7b67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca8",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 241.935,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39258,
    "c": 0.18961,
    "h": 274.6
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#302CA8
secondary
#BFC26E
accent
#E246DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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