#302FA3#302FA3

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

Color values

HEX#302FA3
RGBrgb(48, 47, 163)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 64%)
CMYKcmyk(70.6%, 71.2%, 0%, 36.1%)
CIE-LABlab(27.59, 38.70, -62.12)
CIE-LCHlch(27.59, 73.19, 301.92°)
OKLaboklab(39.2% 0.0145 -0.1795)
OKLCHoklch(39.2% 0.18 274.6)
XYZxyz(8.8441, 5.3049, 35.2011)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FA3 #A2A32F
analogous
#2F68A3 #302FA3 #6A2FA3
triadic
#302FA3 #A3302F #2FA330
tetradic
#302FA3 #A32F68 #A2A32F #2FA36A
square
#302FA3 #A32F68 #A2A32F #2FA36A
split-complementary
#302FA3 #A36A2F #68A32F
monochromatic
#141444 #222173 #302FA3 #4746CA #7675D7

Accessibility & contrast

On white

10.19
#302FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302FA3
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FA3#FFFFFF#000000##FFFFFF
##302FA31.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302fa3;
/* rgb */ color: rgb(48, 47, 163);
/* oklch */ color: oklch(39.2% 0.180 274.6);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#302fa3',
    950: '#000000',
  },
}
SCSS
$custom: #302fa3;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#302fa3",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 240.517,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39203,
    "c": 0.18012,
    "h": 274.6
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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