#302D9D#302D9D

#302D9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.175 H 275.5°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#302D9D
RGBrgb(48, 45, 157)
HSLhsl(242, 55%, 40%)
HSVhsv(242, 71%, 62%)
CMYKcmyk(69.4%, 71.3%, 0%, 38.4%)
CIE-LABlab(26.56, 37.86, -60.16)
CIE-LCHlch(26.56, 71.08, 302.18°)
OKLaboklab(38.29% 0.0167 -0.1738)
OKLCHoklch(38.29% 0.175 275.5)
XYZxyz(8.2411, 4.9387, 32.4107)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D9D #9A9D2D
analogous
#2D629D #302D9D #682D9D
triadic
#302D9D #9D302D #2D9D30
tetradic
#302D9D #9D2D62 #9A9D2D #2D9D68
square
#302D9D #9D2D62 #9A9D2D #2D9D68
split-complementary
#302D9D #9D682D #629D2D
monochromatic
#13123E #211F6D #302D9D #433FC8 #726FD6

Accessibility & contrast

On white

10.56
#302D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#302D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D9D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D9D#FFFFFF#000000##FFFFFF
##302D9D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302d9d;
/* rgb */ color: rgb(48, 45, 157);
/* oklch */ color: oklch(38.3% 0.175 275.5);
Tailwind
colors: {
  custom: {
    50: '#7867bb',
    500: '#302d9d',
    950: '#000000',
  },
}
SCSS
$custom: #302d9d;
$custom-light: #7867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#302d9d",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 241.607,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38288,
    "c": 0.17462,
    "h": 275.5
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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