#302FC9#302FC9

#302FC9 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.2% C 0.227 H 271.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#302FC9
RGBrgb(48, 47, 201)
HSLhsl(240, 62%, 49%)
HSVhsv(240, 77%, 79%)
CMYKcmyk(76.1%, 76.6%, 0%, 21.2%)
CIE-LABlab(31.53, 51.27, -78.21)
CIE-LCHlch(31.53, 93.51, 303.25°)
OKLaboklab(43.17% 0.0077 -0.2264)
OKLCHoklch(43.17% 0.227 271.9)
XYZxyz(12.7745, 6.8771, 55.9012)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302FC9 #C8C92F
analogous
#2F7BC9 #302FC9 #7D2FC9
triadic
#302FC9 #C9302F #2FC930
tetradic
#302FC9 #C92F7B #C8C92F #2FC97D
square
#302FC9 #C92F7B #C8C92F #2FC97D
split-complementary
#302FC9 #C97D2F #7BC92F
monochromatic
#181866 #242397 #302FC9 #5D5CD9 #8E8EE5

Accessibility & contrast

On white

8.84
#302FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#302FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302FC9
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302FC9#FFFFFF#000000##FFFFFF
##302FC91.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CD
Deuteranopia (green-blind)
#0042C6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #302fc9;
/* rgb */ color: rgb(48, 47, 201);
/* oklch */ color: oklch(43.2% 0.227 271.9);
Tailwind
colors: {
  custom: {
    50: '#826adb',
    500: '#302fc9',
    950: '#000000',
  },
}
SCSS
$custom: #302fc9;
$custom-light: #826adb;
$custom-dark: #000000;
JSON
{
  "hex": "#302fc9",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 240.39,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.43173,
    "c": 0.22651,
    "h": 271.9
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#302FC9
secondary
#CECF85
accent
#E543E4
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #302FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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