#302FB6#302FB6

#302FB6 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.204 H 273.2°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#302FB6
RGBrgb(48, 47, 182)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 71%)
CMYKcmyk(73.6%, 74.2%, 0%, 28.6%)
CIE-LABlab(29.51, 45.09, -70.35)
CIE-LCHlch(29.51, 83.56, 302.66°)
OKLaboklab(41.15% 0.0113 -0.2035)
OKLCHoklch(41.15% 0.204 273.2)
XYZxyz(10.6761, 6.0377, 44.8496)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FB6 #B5B62F
analogous
#2F72B6 #302FB6 #732FB6
triadic
#302FB6 #B6302F #2FB630
tetradic
#302FB6 #B62F72 #B5B62F #2FB673
square
#302FB6 #B62F72 #B5B62F #2FB673
split-complementary
#302FB6 #B6732F #72B62F
monochromatic
#161655 #232285 #302FB6 #5150D2 #8281DE

Accessibility & contrast

On white

9.51
#302FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#302FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FB6
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FB6#FFFFFF#000000##FFFFFF
##302FB61.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#003FB4
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #302fb6;
/* rgb */ color: rgb(48, 47, 182);
/* oklch */ color: oklch(41.1% 0.204 273.2);
Tailwind
colors: {
  custom: {
    50: '#7e69cd',
    500: '#302fb6',
    950: '#000000',
  },
}
SCSS
$custom: #302fb6;
$custom-light: #7e69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#302fb6",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 240.444,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4115,
    "c": 0.20385,
    "h": 273.2
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#302FB6
secondary
#C7C779
accent
#E246E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #302FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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