#302CA7#302CA7

#302CA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.188 H 274.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#302CA7
RGBrgb(48, 44, 167)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 74%, 65%)
CMYKcmyk(71.3%, 73.7%, 0%, 34.5%)
CIE-LABlab(27.35, 41.82, -64.93)
CIE-LCHlch(27.35, 77.23, 302.79°)
OKLaboklab(39.15% 0.0156 -0.1877)
OKLCHoklch(39.15% 0.188 274.7)
XYZxyz(9.0923, 5.2189, 37.0799)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302CA7 #A3A72C
analogous
#2C66A7 #302CA7 #6E2CA7
triadic
#302CA7 #A7302C #2CA730
tetradic
#302CA7 #A72C66 #A3A72C #2CA76E
square
#302CA7 #A72C66 #A3A72C #2CA76E
split-complementary
#302CA7 #A76E2C #66A72C
monochromatic
#141246 #221F77 #302CA7 #4743CD #7773DA

Accessibility & contrast

On white

10.27
#302CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#302CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302CA7
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302CA7#FFFFFF#000000##FFFFFF
##302CA71.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #302ca7;
/* rgb */ color: rgb(48, 44, 167);
/* oklch */ color: oklch(39.2% 0.188 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a67c2',
    500: '#302ca7',
    950: '#000000',
  },
}
SCSS
$custom: #302ca7;
$custom-light: #7a67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302ca7",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 241.951,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39154,
    "c": 0.18837,
    "h": 274.7
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#302CA7
secondary
#BFC26D
accent
#E246DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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