#302D9C#302D9C

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

Color values

HEX#302D9C
RGBrgb(48, 45, 156)
HSLhsl(242, 55%, 39%)
HSVhsv(242, 71%, 61%)
CMYKcmyk(69.2%, 71.2%, 0%, 38.8%)
CIE-LABlab(26.46, 37.51, -59.71)
CIE-LCHlch(26.46, 70.52, 302.14°)
OKLaboklab(38.19% 0.0168 -0.1725)
OKLCHoklch(38.19% 0.173 275.6)
XYZxyz(8.1561, 4.9047, 31.9629)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D9C #999C2D
analogous
#2D619C #302D9C #682D9C
triadic
#302D9C #9C302D #2D9C30
tetradic
#302D9C #9C2D61 #999C2D #2D9C68
square
#302D9C #9C2D61 #999C2D #2D9C68
split-complementary
#302D9C #9C682D #619C2D
monochromatic
#13123D #211F6D #302D9C #423FC8 #716ED5

Accessibility & contrast

On white

10.60
#302D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302D9C
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D9C#FFFFFF#000000##FFFFFF
##302D9C1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302d9c;
/* rgb */ color: rgb(48, 45, 156);
/* oklch */ color: oklch(38.2% 0.173 275.6);
Tailwind
colors: {
  custom: {
    50: '#7867ba',
    500: '#302d9c',
    950: '#000000',
  },
}
SCSS
$custom: #302d9c;
$custom-light: #7867ba;
$custom-dark: #000000;
JSON
{
  "hex": "#302d9c",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 241.622,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38188,
    "c": 0.17333,
    "h": 275.6
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#302D9C
secondary
#BABC68
accent
#DF49DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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