#302B82#302B82

#302B82 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.141 H 278.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#302B82
RGBrgb(48, 43, 130)
HSLhsl(243, 50%, 34%)
HSVhsv(243, 67%, 51%)
CMYKcmyk(63.1%, 66.9%, 0%, 49%)
CIE-LABlab(23.56, 29.77, -48.36)
CIE-LCHlch(23.56, 56.79, 301.62°)
OKLaboklab(35.35% 0.0219 -0.1393)
OKLCHoklch(35.35% 0.141 278.9)
XYZxyz(6.1108, 3.9674, 21.5585)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B82 #7D822B
analogous
#2B5282 #302B82 #5C2B82
triadic
#302B82 #82302B #2B8230
tetradic
#302B82 #822B52 #7D822B #2B825C
square
#302B82 #822B52 #7D822B #2B825C
split-complementary
#302B82 #825C2B #52822B
monochromatic
#0E0D26 #1F1C54 #302B82 #413AB0 #645ECA

Accessibility & contrast

On white

11.71
#302B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302B82
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B82#FFFFFF#000000##FFFFFF
##302B821.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302b82;
/* rgb */ color: rgb(48, 43, 130);
/* oklch */ color: oklch(35.3% 0.141 278.9);
Tailwind
colors: {
  custom: {
    50: '#7265a7',
    500: '#302b82',
    950: '#000000',
  },
}
SCSS
$custom: #302b82;
$custom-light: #7265a7;
$custom-dark: #000000;
JSON
{
  "hex": "#302b82",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 130
  },
  "hsl": {
    "h": 243.448,
    "s": 50.289,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35348,
    "c": 0.14097,
    "h": 278.9
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#302B82
secondary
#ABB059
accent
#DA4ED2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302B82

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

Preview Lab → · Contrast checker → · Palette generator →

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