#302FA6#302FA6

#302FA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.184 H 274.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#302FA6
RGBrgb(48, 47, 166)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(71.1%, 71.7%, 0%, 34.9%)
CIE-LABlab(27.88, 39.72, -63.44)
CIE-LCHlch(27.88, 74.85, 302.05°)
OKLaboklab(39.5% 0.014 -0.1834)
OKLCHoklch(39.5% 0.184 274.4)
XYZxyz(9.1161, 5.4137, 36.6335)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FA6 #A5A62F
analogous
#2F6AA6 #302FA6 #6C2FA6
triadic
#302FA6 #A6302F #2FA630
tetradic
#302FA6 #A62F6A #A5A62F #2FA66C
square
#302FA6 #A62F6A #A5A62F #2FA66C
split-complementary
#302FA6 #A66C2F #6AA62F
monochromatic
#141447 #222176 #302FA6 #4847CB #7877D8

Accessibility & contrast

On white

10.08
#302FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#302FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FA6
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FA6#FFFFFF#000000##FFFFFF
##302FA61.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #302fa6;
/* rgb */ color: rgb(48, 47, 166);
/* oklch */ color: oklch(39.5% 0.184 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a69c2',
    500: '#302fa6',
    950: '#000000',
  },
}
SCSS
$custom: #302fa6;
$custom-light: #7a69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302fa6",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 240.504,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.18395,
    "h": 274.4
  },
  "luminance": 0.05415
}

Semantic roles & 50–950 ramp

primary
#302FA6
secondary
#C0C170
accent
#DF49DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #302FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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