#302F96#302F96

#302F96 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.163 H 275.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#302F96
RGBrgb(48, 47, 150)
HSLhsl(241, 52%, 39%)
HSVhsv(241, 69%, 59%)
CMYKcmyk(68%, 68.7%, 0%, 41.2%)
CIE-LABlab(26.34, 34.21, -56.24)
CIE-LCHlch(26.34, 65.83, 301.31°)
OKLaboklab(37.92% 0.0163 -0.1623)
OKLCHoklch(37.92% 0.163 275.7)
XYZxyz(7.7387, 4.8627, 29.3790)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F96 #95962F
analogous
#2F6196 #302F96 #632F96
triadic
#302F96 #96302F #2F9630
tetradic
#302F96 #962F61 #95962F #2F9663
square
#302F96 #962F61 #95962F #2F9663
split-complementary
#302F96 #96632F #61962F
monochromatic
#121239 #212067 #302F96 #413FC3 #6F6ED2

Accessibility & contrast

On white

10.65
#302F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302F96
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F96#FFFFFF#000000##FFFFFF
##302F961.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #302f96;
/* rgb */ color: rgb(48, 47, 150);
/* oklch */ color: oklch(37.9% 0.163 275.7);
Tailwind
colors: {
  custom: {
    50: '#7668b6',
    500: '#302f96',
    950: '#000000',
  },
}
SCSS
$custom: #302f96;
$custom-light: #7668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#302f96",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 240.583,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37925,
    "c": 0.16316,
    "h": 275.7
  },
  "luminance": 0.04863
}

Semantic roles & 50–950 ramp

primary
#302F96
secondary
#B8B968
accent
#DC4CDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302F96

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

Preview Lab → · Contrast checker → · Palette generator →

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