#302C8A#302C8A

#302C8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.151 H 277.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#302C8A
RGBrgb(48, 44, 138)
HSLhsl(243, 52%, 36%)
HSVhsv(243, 68%, 54%)
CMYKcmyk(65.2%, 68.1%, 0%, 45.9%)
CIE-LABlab(24.53, 31.92, -51.79)
CIE-LCHlch(24.53, 60.84, 301.65°)
OKLaboklab(36.27% 0.0201 -0.1493)
OKLCHoklch(36.27% 0.151 277.7)
XYZxyz(6.7056, 4.2642, 24.5095)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C8A #868A2C
analogous
#2C578A #302C8A #5F2C8A
triadic
#302C8A #8A302C #2C8A30
tetradic
#302C8A #8A2C57 #868A2C #2C8A5F
square
#302C8A #8A2C57 #868A2C #2C8A5F
split-complementary
#302C8A #8A5F2C #578A2C
monochromatic
#100E2D #201D5C #302C8A #403BB8 #6863CD

Accessibility & contrast

On white

11.33
#302C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#302C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C8A
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C8A#FFFFFF#000000##FFFFFF
##302C8A1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302c8a;
/* rgb */ color: rgb(48, 44, 138);
/* oklch */ color: oklch(36.3% 0.151 277.7);
Tailwind
colors: {
  custom: {
    50: '#7466ad',
    500: '#302c8a',
    950: '#000000',
  },
}
SCSS
$custom: #302c8a;
$custom-light: #7466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#302c8a",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 242.553,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36271,
    "c": 0.15068,
    "h": 277.7
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#302C8A
secondary
#B0B45E
accent
#DB4DD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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