#302FA7#302FA7

#302FA7 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.185 H 274.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#302FA7
RGBrgb(48, 47, 167)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(71.3%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.98, 40.07, -63.88)
CIE-LCHlch(27.98, 75.41, 302.09°)
OKLaboklab(39.61% 0.0138 -0.1847)
OKLCHoklch(39.61% 0.185 274.3)
XYZxyz(9.2082, 5.4505, 37.1185)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FA7 #A6A72F
analogous
#2F6AA7 #302FA7 #6C2FA7
triadic
#302FA7 #A7302F #2FA730
tetradic
#302FA7 #A72F6A #A6A72F #2FA76C
square
#302FA7 #A72F6A #A6A72F #2FA76C
split-complementary
#302FA7 #A76C2F #6AA72F
monochromatic
#151447 #222277 #302FA7 #4948CB #7878D9

Accessibility & contrast

On white

10.05
#302FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#302FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FA7
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FA7#FFFFFF#000000##FFFFFF
##302FA71.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302fa7;
/* rgb */ color: rgb(48, 47, 167);
/* oklch */ color: oklch(39.6% 0.185 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a69c2',
    500: '#302fa7',
    950: '#000000',
  },
}
SCSS
$custom: #302fa7;
$custom-light: #7a69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302fa7",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 240.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39605,
    "c": 0.18522,
    "h": 274.3
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#302FA7
secondary
#C0C171
accent
#DF48DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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