#302D9E#302D9E

#302D9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.176 H 275.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#302D9E
RGBrgb(48, 45, 158)
HSLhsl(242, 56%, 40%)
HSVhsv(242, 72%, 62%)
CMYKcmyk(69.6%, 71.5%, 0%, 38%)
CIE-LABlab(26.66, 38.20, -60.61)
CIE-LCHlch(26.66, 71.64, 302.22°)
OKLaboklab(38.39% 0.0165 -0.1751)
OKLCHoklch(38.39% 0.176 275.4)
XYZxyz(8.3268, 4.9730, 32.8622)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D9E #9B9E2D
analogous
#2D639E #302D9E #692D9E
triadic
#302D9E #9E302D #2D9E30
tetradic
#302D9E #9E2D63 #9B9E2D #2D9E69
square
#302D9E #9E2D63 #9B9E2D #2D9E69
split-complementary
#302D9E #9E692D #639E2D
monochromatic
#13123F #221F6E #302D9E #4340C9 #726FD6

Accessibility & contrast

On white

10.53
#302D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302D9E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D9E#FFFFFF#000000##FFFFFF
##302D9E1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302d9e;
/* rgb */ color: rgb(48, 45, 158);
/* oklch */ color: oklch(38.4% 0.176 275.4);
Tailwind
colors: {
  custom: {
    50: '#7867bc',
    500: '#302d9e',
    950: '#000000',
  },
}
SCSS
$custom: #302d9e;
$custom-light: #7867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#302d9e",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 241.593,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38388,
    "c": 0.17591,
    "h": 275.4
  },
  "luminance": 0.04974
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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