#302B97#302B97

#302B97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.169 H 276.4°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#302B97
RGBrgb(48, 43, 151)
HSLhsl(243, 56%, 38%)
HSVhsv(243, 72%, 59%)
CMYKcmyk(68.2%, 71.5%, 0%, 40.8%)
CIE-LABlab(25.53, 37.02, -58.18)
CIE-LCHlch(25.53, 68.96, 302.47°)
OKLaboklab(37.37% 0.019 -0.168)
OKLCHoklch(37.37% 0.169 276.4)
XYZxyz(7.6669, 4.5898, 29.7540)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B97 #92972B
analogous
#2B5C97 #302B97 #662B97
triadic
#302B97 #97302B #2B9730
tetradic
#302B97 #972B5C #92972B #2B9766
square
#302B97 #972B5C #92972B #2B9766
split-complementary
#302B97 #97662B #5C972B
monochromatic
#121038 #211D67 #302B97 #3F39C7 #6D68D4

Accessibility & contrast

On white

10.95
#302B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#302B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302B97
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B97#FFFFFF#000000##FFFFFF
##302B971.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302b97;
/* rgb */ color: rgb(48, 43, 151);
/* oklch */ color: oklch(37.4% 0.169 276.4);
Tailwind
colors: {
  custom: {
    50: '#7765b7',
    500: '#302b97',
    950: '#000000',
  },
}
SCSS
$custom: #302b97;
$custom-light: #7765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302b97",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 242.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37373,
    "c": 0.1691,
    "h": 276.4
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

primary
#302B97
secondary
#B7BB63
accent
#DF49D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #302B97

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

Preview Lab → · Contrast checker → · Palette generator →

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