#302C8B#302C8B

#302C8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.152 H 277.5°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#302C8B
RGBrgb(48, 44, 139)
HSLhsl(243, 52%, 36%)
HSVhsv(243, 68%, 55%)
CMYKcmyk(65.5%, 68.3%, 0%, 45.5%)
CIE-LABlab(24.62, 32.27, -52.26)
CIE-LCHlch(24.62, 61.42, 301.69°)
OKLaboklab(36.37% 0.02 -0.1507)
OKLCHoklch(36.37% 0.152 277.5)
XYZxyz(6.7783, 4.2933, 24.8926)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C8B #878B2C
analogous
#2C578B #302C8B #5F2C8B
triadic
#302C8B #8B302C #2C8B30
tetradic
#302C8B #8B2C57 #878B2C #2C8B5F
square
#302C8B #8B2C57 #878B2C #2C8B5F
split-complementary
#302C8B #8B5F2C #578B2C
monochromatic
#100F2E #201D5D #302C8B #403BB9 #6864CE

Accessibility & contrast

On white

11.30
#302C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#302C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C8B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C8B#FFFFFF#000000##FFFFFF
##302C8B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302c8b;
/* rgb */ color: rgb(48, 44, 139);
/* oklch */ color: oklch(36.4% 0.152 277.5);
Tailwind
colors: {
  custom: {
    50: '#7466ae',
    500: '#302c8b',
    950: '#000000',
  },
}
SCSS
$custom: #302c8b;
$custom-light: #7466ae;
$custom-dark: #000000;
JSON
{
  "hex": "#302c8b",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 242.526,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.15203,
    "h": 277.5
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#302C8B
secondary
#B1B45F
accent
#DB4CD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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