#302A82#302A82

#302A82 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.142 H 279.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#302A82
RGBrgb(48, 42, 130)
HSLhsl(244, 51%, 34%)
HSVhsv(244, 68%, 51%)
CMYKcmyk(63.1%, 67.7%, 0%, 49%)
CIE-LABlab(23.32, 30.41, -48.75)
CIE-LCHlch(23.32, 57.46, 301.96°)
OKLaboklab(35.17% 0.0228 -0.1404)
OKLCHoklch(35.17% 0.142 279.2)
XYZxyz(6.0749, 3.8956, 21.5466)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A82 #7C822A
analogous
#2A5082 #302A82 #5C2A82
triadic
#302A82 #82302A #2A8230
tetradic
#302A82 #822A50 #7C822A #2A825C
square
#302A82 #822A50 #7C822A #2A825C
split-complementary
#302A82 #825C2A #50822A
monochromatic
#0E0C25 #1F1B54 #302A82 #4139B0 #645CCA

Accessibility & contrast

On white

11.80
#302A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A82
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A82#FFFFFF#000000##FFFFFF
##302A821.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302a82;
/* rgb */ color: rgb(48, 42, 130);
/* oklch */ color: oklch(35.2% 0.142 279.2);
Tailwind
colors: {
  custom: {
    50: '#7264a7',
    500: '#302a82',
    950: '#000000',
  },
}
SCSS
$custom: #302a82;
$custom-light: #7264a7;
$custom-dark: #000000;
JSON
{
  "hex": "#302a82",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 244.091,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35174,
    "c": 0.14225,
    "h": 279.2
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#302A82
secondary
#AAB058
accent
#DB4DD1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302A82

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

Preview Lab → · Contrast checker → · Palette generator →

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