#302EA2#302EA2

#302EA2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.180 H 274.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#302EA2
RGBrgb(48, 46, 162)
HSLhsl(241, 56%, 41%)
HSVhsv(241, 72%, 64%)
CMYKcmyk(70.4%, 71.6%, 0%, 36.5%)
CIE-LABlab(27.27, 38.96, -62.03)
CIE-LCHlch(27.27, 73.25, 302.13°)
OKLaboklab(38.95% 0.0152 -0.1793)
OKLCHoklch(38.95% 0.18 274.9)
XYZxyz(8.7153, 5.1902, 34.7179)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA2 #A0A22E
analogous
#2E66A2 #302EA2 #6A2EA2
triadic
#302EA2 #A2302E #2EA230
tetradic
#302EA2 #A22E66 #A0A22E #2EA26A
square
#302EA2 #A22E66 #A0A22E #2EA26A
split-complementary
#302EA2 #A26A2E #66A22E
monochromatic
#141343 #222072 #302EA2 #4643CA #7573D7

Accessibility & contrast

On white

10.30
#302EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302EA2
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA2#FFFFFF#000000##FFFFFF
##302EA21.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #302ea2;
/* rgb */ color: rgb(48, 46, 162);
/* oklch */ color: oklch(38.9% 0.180 274.9);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#302ea2',
    950: '#000000',
  },
}
SCSS
$custom: #302ea2;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea2",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 241.034,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38946,
    "c": 0.17994,
    "h": 274.9
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#302EA2
secondary
#BEBF6D
accent
#DF49DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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