#302EB7#302EB7

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

Color values

HEX#302EB7
RGBrgb(48, 46, 183)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 72%)
CMYKcmyk(73.8%, 74.9%, 0%, 28.2%)
CIE-LABlab(29.41, 45.98, -71.10)
CIE-LCHlch(29.41, 84.67, 302.89°)
OKLaboklab(41.11% 0.0116 -0.2057)
OKLCHoklch(41.11% 0.206 273.2)
XYZxyz(10.7403, 6.0002, 45.3827)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302EB7 #B5B72E
analogous
#2E70B7 #302EB7 #752EB7
triadic
#302EB7 #B7302E #2EB730
tetradic
#302EB7 #B72E70 #B5B72E #2EB775
square
#302EB7 #B72E70 #B5B72E #2EB775
split-complementary
#302EB7 #B7752E #70B72E
monochromatic
#161555 #232286 #302EB7 #514FD3 #8280DF

Accessibility & contrast

On white

9.54
#302EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#302EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302EB7
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302EB7#FFFFFF#000000##FFFFFF
##302EB71.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #302eb7;
/* rgb */ color: rgb(48, 46, 183);
/* oklch */ color: oklch(41.1% 0.206 273.2);
Tailwind
colors: {
  custom: {
    50: '#7e69ce',
    500: '#302eb7',
    950: '#000000',
  },
}
SCSS
$custom: #302eb7;
$custom-light: #7e69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#302eb7",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 240.876,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41114,
    "c": 0.20604,
    "h": 273.2
  },
  "luminance": 0.06001
}

Semantic roles & 50–950 ramp

primary
#302EB7
secondary
#C7C879
accent
#E345E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #302EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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