#302C88#302C88

#302C88 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.148 H 277.9°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#302C88
RGBrgb(48, 44, 136)
HSLhsl(243, 51%, 35%)
HSVhsv(243, 68%, 53%)
CMYKcmyk(64.7%, 67.6%, 0%, 46.7%)
CIE-LABlab(24.34, 31.22, -50.84)
CIE-LCHlch(24.34, 59.66, 301.56°)
OKLaboklab(36.08% 0.0203 -0.1466)
OKLCHoklch(36.08% 0.148 277.9)
XYZxyz(6.5621, 4.2068, 23.7540)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C88 #84882C
analogous
#2C5688 #302C88 #5E2C88
triadic
#302C88 #88302C #2C8830
tetradic
#302C88 #882C56 #84882C #2C885E
square
#302C88 #882C56 #84882C #2C885E
split-complementary
#302C88 #885E2C #56882C
monochromatic
#0F0E2C #201D5A #302C88 #403BB6 #6762CC

Accessibility & contrast

On white

11.40
#302C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302C88
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C88#FFFFFF#000000##FFFFFF
##302C881.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302c88;
/* rgb */ color: rgb(48, 44, 136);
/* oklch */ color: oklch(36.1% 0.148 277.9);
Tailwind
colors: {
  custom: {
    50: '#7366ac',
    500: '#302c88',
    950: '#000000',
  },
}
SCSS
$custom: #302c88;
$custom-light: #7366ac;
$custom-dark: #000000;
JSON
{
  "hex": "#302c88",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 242.609,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36082,
    "c": 0.14795,
    "h": 277.9
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#302C88
secondary
#AFB35D
accent
#DB4DD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302C88

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

Preview Lab → · Contrast checker → · Palette generator →

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