#302FA4#302FA4

#302FA4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.181 H 274.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#302FA4
RGBrgb(48, 47, 164)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 64%)
CMYKcmyk(70.7%, 71.3%, 0%, 35.7%)
CIE-LABlab(27.68, 39.04, -62.56)
CIE-LCHlch(27.68, 73.74, 301.97°)
OKLaboklab(39.3% 0.0143 -0.1808)
OKLCHoklch(39.3% 0.181 274.5)
XYZxyz(8.9341, 5.3409, 35.6748)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FA4 #A3A42F
analogous
#2F69A4 #302FA4 #6B2FA4
triadic
#302FA4 #A4302F #2FA430
tetradic
#302FA4 #A42F69 #A3A42F #2FA46B
square
#302FA4 #A42F69 #A3A42F #2FA46B
split-complementary
#302FA4 #A46B2F #69A42F
monochromatic
#141445 #222174 #302FA4 #4746CA #7776D8

Accessibility & contrast

On white

10.15
#302FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302FA4
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FA4#FFFFFF#000000##FFFFFF
##302FA41.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302fa4;
/* rgb */ color: rgb(48, 47, 164);
/* oklch */ color: oklch(39.3% 0.181 274.5);
Tailwind
colors: {
  custom: {
    50: '#7968c0',
    500: '#302fa4',
    950: '#000000',
  },
}
SCSS
$custom: #302fa4;
$custom-light: #7968c0;
$custom-dark: #000000;
JSON
{
  "hex": "#302fa4",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 240.513,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39303,
    "c": 0.1814,
    "h": 274.5
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#302FA4
secondary
#BFC06F
accent
#DF49DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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