#302D9F#302D9F

#302D9F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.177 H 275.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#302D9F
RGBrgb(48, 45, 159)
HSLhsl(242, 56%, 40%)
HSVhsv(242, 72%, 62%)
CMYKcmyk(69.8%, 71.7%, 0%, 37.6%)
CIE-LABlab(26.76, 38.54, -61.05)
CIE-LCHlch(26.76, 72.20, 302.26°)
OKLaboklab(38.49% 0.0164 -0.1764)
OKLCHoklch(38.49% 0.177 275.3)
XYZxyz(8.4133, 5.0076, 33.3173)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D9F #9C9F2D
analogous
#2D639F #302D9F #692D9F
triadic
#302D9F #9F302D #2D9F30
tetradic
#302D9F #9F2D63 #9C9F2D #2D9F69
square
#302D9F #9F2D63 #9C9F2D #2D9F69
split-complementary
#302D9F #9F692D #639F2D
monochromatic
#131240 #22206F #302D9F #4440C9 #7370D6

Accessibility & contrast

On white

10.49
#302D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#302D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D9F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D9F#FFFFFF#000000##FFFFFF
##302D9F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302d9f;
/* rgb */ color: rgb(48, 45, 159);
/* oklch */ color: oklch(38.5% 0.177 275.3);
Tailwind
colors: {
  custom: {
    50: '#7867bc',
    500: '#302d9f',
    950: '#000000',
  },
}
SCSS
$custom: #302d9f;
$custom-light: #7867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#302d9f",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 241.579,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.38488,
    "c": 0.1772,
    "h": 275.3
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#302D9F
secondary
#BCBE6A
accent
#DF49DB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #302D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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