#302C8C#302C8C

#302C8C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.153 H 277.4°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#302C8C
RGBrgb(48, 44, 140)
HSLhsl(243, 52%, 36%)
HSVhsv(243, 69%, 55%)
CMYKcmyk(65.7%, 68.6%, 0%, 45.1%)
CIE-LABlab(24.71, 32.62, -52.73)
CIE-LCHlch(24.71, 62.00, 301.74°)
OKLaboklab(36.46% 0.0199 -0.1521)
OKLCHoklch(36.46% 0.153 277.4)
XYZxyz(6.8517, 4.3226, 25.2791)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C8C #888C2C
analogous
#2C588C #302C8C #602C8C
triadic
#302C8C #8C302C #2C8C30
tetradic
#302C8C #8C2C58 #888C2C #2C8C60
square
#302C8C #8C2C58 #888C2C #2C8C60
split-complementary
#302C8C #8C602C #588C2C
monochromatic
#100F2F #201D5D #302C8C #403BBB #6964CE

Accessibility & contrast

On white

11.26
#302C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#302C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C8C
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C8C#FFFFFF#000000##FFFFFF
##302C8C1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302c8c;
/* rgb */ color: rgb(48, 44, 140);
/* oklch */ color: oklch(36.5% 0.153 277.4);
Tailwind
colors: {
  custom: {
    50: '#7466af',
    500: '#302c8c',
    950: '#000000',
  },
}
SCSS
$custom: #302c8c;
$custom-light: #7466af;
$custom-dark: #000000;
JSON
{
  "hex": "#302c8c",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 242.5,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.15338,
    "h": 277.4
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#302C8C
secondary
#B1B55F
accent
#DC4CD6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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