#302C87#302C87

#302C87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.147 H 278.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#302C87
RGBrgb(48, 44, 135)
HSLhsl(243, 51%, 35%)
HSVhsv(243, 67%, 53%)
CMYKcmyk(64.4%, 67.4%, 0%, 47.1%)
CIE-LABlab(24.25, 30.87, -50.36)
CIE-LCHlch(24.25, 59.07, 301.51°)
OKLaboklab(35.99% 0.0204 -0.1451)
OKLCHoklch(35.99% 0.147 278)
XYZxyz(6.4914, 4.1785, 23.3814)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C87 #83872C
analogous
#2C5687 #302C87 #5D2C87
triadic
#302C87 #87302C #2C8730
tetradic
#302C87 #872C56 #83872C #2C875D
square
#302C87 #872C56 #83872C #2C875D
split-complementary
#302C87 #875D2C #56872C
monochromatic
#0F0E2B #201D59 #302C87 #403BB5 #6662CC

Accessibility & contrast

On white

11.44
#302C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#302C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C87
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C87#FFFFFF#000000##FFFFFF
##302C871.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302c87;
/* rgb */ color: rgb(48, 44, 135);
/* oklch */ color: oklch(36.0% 0.147 278.0);
Tailwind
colors: {
  custom: {
    50: '#7366ab',
    500: '#302c87',
    950: '#000000',
  },
}
SCSS
$custom: #302c87;
$custom-light: #7366ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302c87",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 242.637,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35988,
    "c": 0.14658,
    "h": 278
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#302C87
secondary
#AEB25D
accent
#DA4DD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302C87

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

Preview Lab → · Contrast checker → · Palette generator →

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