#302A71#302A71

#302A71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.6% C 0.118 H 281.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#302A71
RGBrgb(48, 42, 113)
HSLhsl(245, 46%, 30%)
HSVhsv(245, 63%, 44%)
CMYKcmyk(57.5%, 62.8%, 0%, 55.7%)
CIE-LABlab(21.86, 24.50, -40.32)
CIE-LCHlch(21.86, 47.18, 301.28°)
OKLaboklab(33.65% 0.0241 -0.1157)
OKLCHoklch(33.65% 0.118 281.8)
XYZxyz(5.0266, 3.4763, 16.0257)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A71 #6B712A
analogous
#2A4871 #302A71 #532A71
triadic
#302A71 #71302A #2A7130
tetradic
#302A71 #712A48 #6B712A #2A7153
square
#302A71 #712A48 #6B712A #2A7153
split-complementary
#302A71 #71532A #48712A
monochromatic
#0A0918 #1D1944 #302A71 #433B9E #5E55C0

Accessibility & contrast

On white

12.39
#302A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302A71
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A71#FFFFFF#000000##FFFFFF
##302A711.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#113B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302a71;
/* rgb */ color: rgb(48, 42, 113);
/* oklch */ color: oklch(33.6% 0.118 281.8);
Tailwind
colors: {
  custom: {
    50: '#6f649a',
    500: '#302a71',
    950: '#000000',
  },
}
SCSS
$custom: #302a71;
$custom-light: #6f649a;
$custom-dark: #000000;
JSON
{
  "hex": "#302a71",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 245.07,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33647,
    "c": 0.11816,
    "h": 281.8
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#302A71
secondary
#9CA354
accent
#D552CA
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #302A71

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

Preview Lab → · Contrast checker → · Palette generator →

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