#302EA6#302EA6

#302EA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.185 H 274.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#302EA6
RGBrgb(48, 46, 166)
HSLhsl(241, 57%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(71.1%, 72.3%, 0%, 34.9%)
CIE-LABlab(27.67, 40.32, -63.80)
CIE-LCHlch(27.67, 75.47, 302.29°)
OKLaboklab(39.35% 0.0146 -0.1844)
OKLCHoklch(39.35% 0.185 274.5)
XYZxyz(9.0766, 5.3347, 36.6204)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA6 #A4A62E
analogous
#2E68A6 #302EA6 #6C2EA6
triadic
#302EA6 #A6302E #2EA630
tetradic
#302EA6 #A62E68 #A4A62E #2EA66C
square
#302EA6 #A62E68 #A4A62E #2EA66C
split-complementary
#302EA6 #A66C2E #68A62E
monochromatic
#141346 #222176 #302EA6 #4846CC #7776D9

Accessibility & contrast

On white

10.16
#302EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#302EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EA6
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA6#FFFFFF#000000##FFFFFF
##302EA61.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302ea6;
/* rgb */ color: rgb(48, 46, 166);
/* oklch */ color: oklch(39.4% 0.185 274.5);
Tailwind
colors: {
  custom: {
    50: '#7a68c2',
    500: '#302ea6',
    950: '#000000',
  },
}
SCSS
$custom: #302ea6;
$custom-light: #7a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea6",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 241,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39351,
    "c": 0.18503,
    "h": 274.5
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#302EA6
secondary
#BFC16F
accent
#E048DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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