#302CA6#302CA6

#302CA6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.187 H 274.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#302CA6
RGBrgb(48, 44, 166)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 73%, 65%)
CMYKcmyk(71.1%, 73.5%, 0%, 34.9%)
CIE-LABlab(27.25, 41.49, -64.49)
CIE-LCHlch(27.25, 76.68, 302.75°)
OKLaboklab(39.05% 0.0157 -0.1865)
OKLCHoklch(39.05% 0.187 274.8)
XYZxyz(9.0003, 5.1821, 36.5949)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA6 #A2A62C
analogous
#2C65A6 #302CA6 #6D2CA6
triadic
#302CA6 #A6302C #2CA630
tetradic
#302CA6 #A62C65 #A2A62C #2CA66D
square
#302CA6 #A62C65 #A2A62C #2CA66D
split-complementary
#302CA6 #A66D2C #65A62C
monochromatic
#141245 #221F76 #302CA6 #4742CD #7673DA

Accessibility & contrast

On white

10.31
#302CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#302CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CA6
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA6#FFFFFF#000000##FFFFFF
##302CA61.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302ca6;
/* rgb */ color: rgb(48, 44, 166);
/* oklch */ color: oklch(39.1% 0.187 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a67c2',
    500: '#302ca6',
    950: '#000000',
  },
}
SCSS
$custom: #302ca6;
$custom-light: #7a67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca6",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 241.967,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39051,
    "c": 0.18712,
    "h": 274.8
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#302CA6
secondary
#BEC16D
accent
#E146DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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