#302A72#302A72

#302A72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.7% C 0.120 H 281.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#302A72
RGBrgb(48, 42, 114)
HSLhsl(245, 46%, 31%)
HSVhsv(245, 63%, 45%)
CMYKcmyk(57.9%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.94, 24.84, -40.83)
CIE-LCHlch(21.94, 47.80, 301.32°)
OKLaboklab(33.73% 0.0241 -0.1172)
OKLCHoklch(33.73% 0.12 281.6)
XYZxyz(5.0832, 3.4989, 16.3238)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A72 #6C722A
analogous
#2A4872 #302A72 #542A72
triadic
#302A72 #72302A #2A7230
tetradic
#302A72 #722A48 #6C722A #2A7254
square
#302A72 #722A48 #6C722A #2A7254
split-complementary
#302A72 #72542A #48722A
monochromatic
#0A0919 #1D1A45 #302A72 #433A9F #5F56C1

Accessibility & contrast

On white

12.35
#302A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#302A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A72
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A72#FFFFFF#000000##FFFFFF
##302A721.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#103B49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302a72;
/* rgb */ color: rgb(48, 42, 114);
/* oklch */ color: oklch(33.7% 0.120 281.6);
Tailwind
colors: {
  custom: {
    50: '#6f649b',
    500: '#302a72',
    950: '#000000',
  },
}
SCSS
$custom: #302a72;
$custom-light: #6f649b;
$custom-dark: #000000;
JSON
{
  "hex": "#302a72",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 245,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33733,
    "c": 0.11962,
    "h": 281.6
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#302A72
secondary
#9DA454
accent
#D652CB
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #302A72

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

Preview Lab → · Contrast checker → · Palette generator →

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