#302D9A#302D9A

#302D9A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.171 H 275.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#302D9A
RGBrgb(48, 45, 154)
HSLhsl(242, 55%, 39%)
HSVhsv(242, 71%, 60%)
CMYKcmyk(68.8%, 70.8%, 0%, 39.6%)
CIE-LABlab(26.27, 36.83, -58.81)
CIE-LCHlch(26.27, 69.39, 302.06°)
OKLaboklab(37.99% 0.0171 -0.1699)
OKLCHoklch(37.99% 0.171 275.8)
XYZxyz(7.9881, 4.8375, 31.0784)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D9A #979A2D
analogous
#2D619A #302D9A #672D9A
triadic
#302D9A #9A302D #2D9A30
tetradic
#302D9A #9A2D61 #979A2D #2D9A67
square
#302D9A #9A2D61 #979A2D #2D9A67
split-complementary
#302D9A #9A672D #619A2D
monochromatic
#12113B #211F6B #302D9A #413EC7 #706DD4

Accessibility & contrast

On white

10.67
#302D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#302D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D9A
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D9A#FFFFFF#000000##FFFFFF
##302D9A1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302d9a;
/* rgb */ color: rgb(48, 45, 154);
/* oklch */ color: oklch(38.0% 0.171 275.8);
Tailwind
colors: {
  custom: {
    50: '#7767b9',
    500: '#302d9a',
    950: '#000000',
  },
}
SCSS
$custom: #302d9a;
$custom-light: #7767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#302d9a",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 241.651,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37989,
    "c": 0.17074,
    "h": 275.8
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#302D9A
secondary
#B9BB67
accent
#DE4ADA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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