#302EA5#302EA5

#302EA5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.184 H 274.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#302EA5
RGBrgb(48, 46, 165)
HSLhsl(241, 56%, 41%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(70.9%, 72.1%, 0%, 35.3%)
CIE-LABlab(27.57, 39.98, -63.36)
CIE-LCHlch(27.57, 74.92, 302.25°)
OKLaboklab(39.25% 0.0148 -0.1832)
OKLCHoklch(39.25% 0.184 274.6)
XYZxyz(8.9852, 5.2981, 36.1391)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA5 #A3A52E
analogous
#2E68A5 #302EA5 #6C2EA5
triadic
#302EA5 #A5302E #2EA530
tetradic
#302EA5 #A52E68 #A3A52E #2EA56C
square
#302EA5 #A52E68 #A3A52E #2EA56C
split-complementary
#302EA5 #A56C2E #68A52E
monochromatic
#141345 #222175 #302EA5 #4745CB #7775D8

Accessibility & contrast

On white

10.20
#302EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#302EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EA5
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA5#FFFFFF#000000##FFFFFF
##302EA51.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302ea5;
/* rgb */ color: rgb(48, 46, 165);
/* oklch */ color: oklch(39.2% 0.184 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a68c1',
    500: '#302ea5',
    950: '#000000',
  },
}
SCSS
$custom: #302ea5;
$custom-light: #7a68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea5",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 241.008,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39249,
    "c": 0.18375,
    "h": 274.6
  },
  "luminance": 0.05299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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