#302EA3#302EA3

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

Color values

HEX#302EA3
RGBrgb(48, 46, 163)
HSLhsl(241, 56%, 41%)
HSVhsv(241, 72%, 64%)
CMYKcmyk(70.6%, 71.8%, 0%, 36.1%)
CIE-LABlab(27.37, 39.30, -62.47)
CIE-LCHlch(27.37, 73.81, 302.17°)
OKLaboklab(39.05% 0.0151 -0.1806)
OKLCHoklch(39.05% 0.181 274.8)
XYZxyz(8.8046, 5.2259, 35.1879)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA3 #A1A32E
analogous
#2E66A3 #302EA3 #6A2EA3
triadic
#302EA3 #A3302E #2EA330
tetradic
#302EA3 #A32E66 #A1A32E #2EA36A
square
#302EA3 #A32E66 #A1A32E #2EA36A
split-complementary
#302EA3 #A36A2E #66A32E
monochromatic
#141344 #222173 #302EA3 #4644CA #7574D8

Accessibility & contrast

On white

10.27
#302EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302EA3
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA3#FFFFFF#000000##FFFFFF
##302EA31.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302ea3;
/* rgb */ color: rgb(48, 46, 163);
/* oklch */ color: oklch(39.0% 0.181 274.8);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#302ea3',
    950: '#000000',
  },
}
SCSS
$custom: #302ea3;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea3",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 241.026,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39047,
    "c": 0.18122,
    "h": 274.8
  },
  "luminance": 0.05227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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