#302EA4#302EA4

#302EA4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.182 H 274.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#302EA4
RGBrgb(48, 46, 164)
HSLhsl(241, 56%, 41%)
HSVhsv(241, 72%, 64%)
CMYKcmyk(70.7%, 72%, 0%, 35.7%)
CIE-LABlab(27.47, 39.64, -62.92)
CIE-LCHlch(27.47, 74.36, 302.21°)
OKLaboklab(39.15% 0.0149 -0.1819)
OKLCHoklch(39.15% 0.182 274.7)
XYZxyz(8.8945, 5.2619, 35.6617)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EA4 #A2A42E
analogous
#2E67A4 #302EA4 #6B2EA4
triadic
#302EA4 #A4302E #2EA430
tetradic
#302EA4 #A42E67 #A2A42E #2EA46B
square
#302EA4 #A42E67 #A2A42E #2EA46B
split-complementary
#302EA4 #A46B2E #67A42E
monochromatic
#141344 #222174 #302EA4 #4745CB #7674D8

Accessibility & contrast

On white

10.23
#302EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302EA4
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EA4#FFFFFF#000000##FFFFFF
##302EA41.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302ea4;
/* rgb */ color: rgb(48, 46, 164);
/* oklch */ color: oklch(39.1% 0.182 274.7);
Tailwind
colors: {
  custom: {
    50: '#7968c0',
    500: '#302ea4',
    950: '#000000',
  },
}
SCSS
$custom: #302ea4;
$custom-light: #7968c0;
$custom-dark: #000000;
JSON
{
  "hex": "#302ea4",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 241.017,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39148,
    "c": 0.18249,
    "h": 274.7
  },
  "luminance": 0.05263
}

Semantic roles & 50–950 ramp

primary
#302EA4
secondary
#BEC06E
accent
#DF48DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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