#302C81#302C81

#302C81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.138 H 278.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#302C81
RGBrgb(48, 44, 129)
HSLhsl(243, 49%, 34%)
HSVhsv(243, 66%, 51%)
CMYKcmyk(62.8%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.72, 28.77, -47.47)
CIE-LCHlch(23.72, 55.51, 301.22°)
OKLaboklab(35.43% 0.021 -0.1367)
OKLCHoklch(35.43% 0.138 278.8)
XYZxyz(6.0808, 4.0143, 21.2190)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C81 #7D812C
analogous
#2C5381 #302C81 #5B2C81
triadic
#302C81 #81302C #2C8130
tetradic
#302C81 #812C53 #7D812C #2C815B
square
#302C81 #812C53 #7D812C #2C815B
split-complementary
#302C81 #815B2C #53812C
monochromatic
#0E0D26 #1F1C53 #302C81 #413CAF #645FC8

Accessibility & contrast

On white

11.65
#302C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#302C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C81
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C81#FFFFFF#000000##FFFFFF
##302C811.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302c81;
/* rgb */ color: rgb(48, 44, 129);
/* oklch */ color: oklch(35.4% 0.138 278.8);
Tailwind
colors: {
  custom: {
    50: '#7265a6',
    500: '#302c81',
    950: '#000000',
  },
}
SCSS
$custom: #302c81;
$custom-light: #7265a6;
$custom-dark: #000000;
JSON
{
  "hex": "#302c81",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 242.824,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35434,
    "c": 0.13828,
    "h": 278.8
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#302C81
secondary
#ABAF5A
accent
#D94FD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #302C81

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

Preview Lab → · Contrast checker → · Palette generator →

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