#302C9E#302C9E

#302C9E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.177 H 275.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#302C9E
RGBrgb(48, 44, 158)
HSLhsl(242, 56%, 40%)
HSVhsv(242, 72%, 62%)
CMYKcmyk(69.6%, 72.2%, 0%, 38%)
CIE-LABlab(26.44, 38.80, -60.96)
CIE-LCHlch(26.44, 72.26, 302.47°)
OKLaboklab(38.23% 0.0172 -0.1762)
OKLCHoklch(38.23% 0.177 275.6)
XYZxyz(8.2891, 4.8976, 32.8496)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C9E #9A9E2C
analogous
#2C619E #302C9E #692C9E
triadic
#302C9E #9E302C #2C9E30
tetradic
#302C9E #9E2C61 #9A9E2C #2C9E69
square
#302C9E #9E2C61 #9A9E2C #2C9E69
split-complementary
#302C9E #9E692C #619E2C
monochromatic
#13113E #211F6E #302C9E #433EC9 #726ED7

Accessibility & contrast

On white

10.61
#302C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#302C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C9E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C9E#FFFFFF#000000##FFFFFF
##302C9E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302c9e;
/* rgb */ color: rgb(48, 44, 158);
/* oklch */ color: oklch(38.2% 0.177 275.6);
Tailwind
colors: {
  custom: {
    50: '#7866bc',
    500: '#302c9e',
    950: '#000000',
  },
}
SCSS
$custom: #302c9e;
$custom-light: #7866bc;
$custom-dark: #000000;
JSON
{
  "hex": "#302c9e",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 242.105,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38233,
    "c": 0.177,
    "h": 275.6
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#302C9E
secondary
#BBBE68
accent
#E048DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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