#302C9B#302C9B

#302C9B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.173 H 275.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#302C9B
RGBrgb(48, 44, 155)
HSLhsl(242, 56%, 39%)
HSVhsv(242, 72%, 61%)
CMYKcmyk(69%, 71.6%, 0%, 39.2%)
CIE-LABlab(26.14, 37.78, -59.62)
CIE-LCHlch(26.14, 70.58, 302.36°)
OKLaboklab(37.93% 0.0177 -0.1722)
OKLCHoklch(37.93% 0.173 275.9)
XYZxyz(8.0341, 4.7956, 31.5062)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302C9B #979B2C
analogous
#2C609B #302C9B #682C9B
triadic
#302C9B #9B302C #2C9B30
tetradic
#302C9B #9B2C60 #979B2C #2C9B68
square
#302C9B #9B2C60 #979B2C #2C9B68
split-complementary
#302C9B #9B682C #609B2C
monochromatic
#12113C #211E6B #302C9B #413CC8 #706CD5

Accessibility & contrast

On white

10.72
#302C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#302C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302C9B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302C9B#FFFFFF#000000##FFFFFF
##302C9B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #302c9b;
/* rgb */ color: rgb(48, 44, 155);
/* oklch */ color: oklch(37.9% 0.173 275.9);
Tailwind
colors: {
  custom: {
    50: '#7866ba',
    500: '#302c9b',
    950: '#000000',
  },
}
SCSS
$custom: #302c9b;
$custom-light: #7866ba;
$custom-dark: #000000;
JSON
{
  "hex": "#302c9b",
  "rgb": {
    "r": 48,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 242.162,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.17315,
    "h": 275.9
  },
  "luminance": 0.04796
}

Semantic roles & 50–950 ramp

primary
#302C9B
secondary
#B9BC67
accent
#DF49DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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