#302DA7#302DA7

#302DA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.187 H 274.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#302DA7
RGBrgb(48, 45, 167)
HSLhsl(241, 58%, 42%)
HSVhsv(241, 73%, 65%)
CMYKcmyk(71.3%, 73.1%, 0%, 34.5%)
CIE-LABlab(27.56, 41.24, -64.58)
CIE-LCHlch(27.56, 76.63, 302.56°)
OKLaboklab(39.3% 0.015 -0.1867)
OKLCHoklch(39.3% 0.187 274.6)
XYZxyz(9.1301, 5.2943, 37.0925)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302DA7 #A4A72D
analogous
#2D67A7 #302DA7 #6D2DA7
triadic
#302DA7 #A7302D #2DA730
tetradic
#302DA7 #A72D67 #A4A72D #2DA76D
square
#302DA7 #A72D67 #A4A72D #2DA76D
split-complementary
#302DA7 #A76D2D #67A72D
monochromatic
#141347 #222077 #302DA7 #4844CD #7775DA

Accessibility & contrast

On white

10.20
#302DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#302DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302DA7
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302DA7#FFFFFF#000000##FFFFFF
##302DA71.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302da7;
/* rgb */ color: rgb(48, 45, 167);
/* oklch */ color: oklch(39.3% 0.187 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a67c2',
    500: '#302da7',
    950: '#000000',
  },
}
SCSS
$custom: #302da7;
$custom-light: #7a67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#302da7",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 241.475,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39302,
    "c": 0.18733,
    "h": 274.6
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#302DA7
secondary
#BFC16E
accent
#E147DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #302DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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