#302C8D#302C8D

#302C8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.155 H 277.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#302C8D
RGBrgb(48, 44, 141)
HSLhsl(242, 52%, 36%)
HSVhsv(242, 69%, 55%)
CMYKcmyk(66%, 68.8%, 0%, 44.7%)
CIE-LABlab(24.80, 32.96, -53.20)
CIE-LCHlch(24.80, 62.58, 301.78°)
OKLaboklab(36.56% 0.0197 -0.1535)
OKLCHoklch(36.56% 0.155 277.3)
XYZxyz(6.9258, 4.3523, 25.6692)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C8D #898D2C
analogous
#2C598D #302C8D #612C8D
triadic
#302C8D #8D302C #2C8D30
tetradic
#302C8D #8D2C59 #898D2C #2C8D61
square
#302C8D #8D2C59 #898D2C #2C8D61
split-complementary
#302C8D #8D612C #598D2C
monochromatic
#100F30 #201D5E #302C8D #403BBC #6965CF

Accessibility & contrast

On white

11.23
#302C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#302C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C8D
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C8D#FFFFFF#000000##FFFFFF
##302C8D1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #302c8d;
/* rgb */ color: rgb(48, 44, 141);
/* oklch */ color: oklch(36.6% 0.155 277.3);
Tailwind
colors: {
  custom: {
    50: '#7566af',
    500: '#302c8d',
    950: '#000000',
  },
}
SCSS
$custom: #302c8d;
$custom-light: #7566af;
$custom-dark: #000000;
JSON
{
  "hex": "#302c8d",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 242.474,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36557,
    "c": 0.15473,
    "h": 277.3
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#302C8D
secondary
#B2B560
accent
#DC4CD6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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