#302FA1#302FA1

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

Color values

HEX#302FA1
RGBrgb(48, 47, 161)
HSLhsl(241, 55%, 41%)
HSVhsv(241, 71%, 63%)
CMYKcmyk(70.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.39, 38.02, -61.23)
CIE-LCHlch(27.39, 72.07, 301.84°)
OKLaboklab(39% 0.0148 -0.1769)
OKLCHoklch(39% 0.178 274.8)
XYZxyz(8.6663, 5.2338, 34.2648)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FA1 #A0A12F
analogous
#2F67A1 #302FA1 #692FA1
triadic
#302FA1 #A1302F #2FA130
tetradic
#302FA1 #A12F67 #A0A12F #2FA169
square
#302FA1 #A12F67 #A0A12F #2FA169
split-complementary
#302FA1 #A1692F #67A12F
monochromatic
#141342 #222172 #302FA1 #4645C9 #7574D6

Accessibility & contrast

On white

10.26
#302FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302FA1
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FA1#FFFFFF#000000##FFFFFF
##302FA11.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#003B9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302fa1;
/* rgb */ color: rgb(48, 47, 161);
/* oklch */ color: oklch(39.0% 0.178 274.8);
Tailwind
colors: {
  custom: {
    50: '#7968be',
    500: '#302fa1',
    950: '#000000',
  },
}
SCSS
$custom: #302fa1;
$custom-light: #7968be;
$custom-dark: #000000;
JSON
{
  "hex": "#302fa1",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 240.526,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.17755,
    "h": 274.8
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#302FA1
secondary
#BEBE6E
accent
#DE4ADD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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