#302C82#302C82

#302C82 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.140 H 278.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#302C82
RGBrgb(48, 44, 130)
HSLhsl(243, 49%, 34%)
HSVhsv(243, 66%, 51%)
CMYKcmyk(63.1%, 66.2%, 0%, 49%)
CIE-LABlab(23.81, 29.13, -47.96)
CIE-LCHlch(23.81, 56.11, 301.27°)
OKLaboklab(35.53% 0.021 -0.1381)
OKLCHoklch(35.53% 0.14 278.6)
XYZxyz(6.1476, 4.0410, 21.5708)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C82 #7E822C
analogous
#2C5382 #302C82 #5B2C82
triadic
#302C82 #82302C #2C8230
tetradic
#302C82 #822C53 #7E822C #2C825B
square
#302C82 #822C53 #7E822C #2C825B
split-complementary
#302C82 #825B2C #53822C
monochromatic
#0E0D27 #1F1D54 #302C82 #413BB0 #645FC9

Accessibility & contrast

On white

11.61
#302C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C82
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C82#FFFFFF#000000##FFFFFF
##302C821.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302c82;
/* rgb */ color: rgb(48, 44, 130);
/* oklch */ color: oklch(35.5% 0.140 278.6);
Tailwind
colors: {
  custom: {
    50: '#7265a7',
    500: '#302c82',
    950: '#000000',
  },
}
SCSS
$custom: #302c82;
$custom-light: #7265a7;
$custom-dark: #000000;
JSON
{
  "hex": "#302c82",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 242.791,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35525,
    "c": 0.13967,
    "h": 278.6
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#302C82
secondary
#ABAF5B
accent
#D94FD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #302C82

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

Preview Lab → · Contrast checker → · Palette generator →

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