#302F99#302F99

#302F99 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.167 H 275.5°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#302F99
RGBrgb(48, 47, 153)
HSLhsl(241, 53%, 39%)
HSVhsv(241, 69%, 60%)
CMYKcmyk(68.6%, 69.3%, 0%, 40%)
CIE-LABlab(26.62, 35.25, -57.61)
CIE-LCHlch(26.62, 67.54, 301.46°)
OKLaboklab(38.22% 0.0159 -0.1664)
OKLCHoklch(38.22% 0.167 275.5)
XYZxyz(7.9833, 4.9606, 30.6676)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F99 #98992F
analogous
#2F6399 #302F99 #652F99
triadic
#302F99 #99302F #2F9930
tetradic
#302F99 #992F63 #98992F #2F9965
square
#302F99 #992F63 #98992F #2F9965
split-complementary
#302F99 #99652F #63992F
monochromatic
#13123B #21216A #302F99 #4241C5 #706FD3

Accessibility & contrast

On white

10.54
#302F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302F99
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F99#FFFFFF#000000##FFFFFF
##302F991.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #302f99;
/* rgb */ color: rgb(48, 47, 153);
/* oklch */ color: oklch(38.2% 0.167 275.5);
Tailwind
colors: {
  custom: {
    50: '#7768b8',
    500: '#302f99',
    950: '#000000',
  },
}
SCSS
$custom: #302f99;
$custom-light: #7768b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302f99",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 240.566,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.16714,
    "h": 275.5
  },
  "luminance": 0.04961
}

Semantic roles & 50–950 ramp

primary
#302F99
secondary
#BABA69
accent
#DC4BDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302F99

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

Preview Lab → · Contrast checker → · Palette generator →

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