#302EA7#302EA7

#302EA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.186 H 274.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#302EA7
RGBrgb(48, 46, 167)
HSLhsl(241, 57%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(71.3%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.77, 40.66, -64.24)
CIE-LCHlch(27.77, 76.02, 302.33°)
OKLaboklab(39.45% 0.0144 -0.1857)
OKLCHoklch(39.45% 0.186 274.4)
XYZxyz(9.1687, 5.3715, 37.1053)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA7 #A5A72E
analogous
#2E69A7 #302EA7 #6D2EA7
triadic
#302EA7 #A7302E #2EA730
tetradic
#302EA7 #A72E69 #A5A72E #2EA76D
square
#302EA7 #A72E69 #A5A72E #2EA76D
split-complementary
#302EA7 #A76D2E #69A72E
monochromatic
#141447 #222177 #302EA7 #4846CC #7876D9

Accessibility & contrast

On white

10.12
#302EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302EA7
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA7#FFFFFF#000000##FFFFFF
##302EA71.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302ea7;
/* rgb */ color: rgb(48, 46, 167);
/* oklch */ color: oklch(39.5% 0.186 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a68c2',
    500: '#302ea7',
    950: '#000000',
  },
}
SCSS
$custom: #302ea7;
$custom-light: #7a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea7",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 240.992,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39452,
    "c": 0.18628,
    "h": 274.4
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#302EA7
secondary
#C0C170
accent
#E048DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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