#302A97#302A97

#302A97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.170 H 276.6°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#302A97
RGBrgb(48, 42, 151)
HSLhsl(243, 56%, 38%)
HSVhsv(243, 72%, 59%)
CMYKcmyk(68.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(25.31, 37.62, -58.54)
CIE-LCHlch(25.31, 69.58, 302.73°)
OKLaboklab(37.22% 0.0197 -0.1691)
OKLCHoklch(37.22% 0.17 276.6)
XYZxyz(7.6310, 4.5180, 29.7421)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A97 #91972A
analogous
#2A5A97 #302A97 #672A97
triadic
#302A97 #97302A #2A9730
tetradic
#302A97 #972A5A #91972A #2A9767
square
#302A97 #972A5A #91972A #2A9767
split-complementary
#302A97 #97672A #5A972A
monochromatic
#120F37 #211D67 #302A97 #3F37C7 #6D67D5

Accessibility & contrast

On white

11.03
#302A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#302A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A97
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A97#FFFFFF#000000##FFFFFF
##302A971.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302a97;
/* rgb */ color: rgb(48, 42, 151);
/* oklch */ color: oklch(37.2% 0.170 276.6);
Tailwind
colors: {
  custom: {
    50: '#7765b7',
    500: '#302a97',
    950: '#000000',
  },
}
SCSS
$custom: #302a97;
$custom-light: #7765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302a97",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 243.303,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37217,
    "c": 0.17021,
    "h": 276.6
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#302A97
secondary
#B6BB62
accent
#E048D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #302A97

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

Preview Lab → · Contrast checker → · Palette generator →

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