#302D84#302D84

#302D84 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.141 H 278.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#302D84
RGBrgb(48, 45, 132)
HSLhsl(242, 49%, 35%)
HSVhsv(242, 66%, 52%)
CMYKcmyk(63.6%, 65.9%, 0%, 48.2%)
CIE-LABlab(24.23, 29.18, -48.53)
CIE-LCHlch(24.23, 56.62, 301.02°)
OKLaboklab(35.89% 0.0199 -0.1398)
OKLCHoklch(35.89% 0.141 278.1)
XYZxyz(6.3208, 4.1706, 22.2972)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D84 #81842D
analogous
#2D5684 #302D84 #5C2D84
triadic
#302D84 #84302D #2D8430
tetradic
#302D84 #842D56 #81842D #2D845C
square
#302D84 #842D56 #81842D #2D845C
split-complementary
#302D84 #845C2D #56842D
monochromatic
#0F0E29 #1F1D56 #302D84 #413DB2 #6662C9

Accessibility & contrast

On white

11.45
#302D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#302D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D84
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D84#FFFFFF#000000##FFFFFF
##302D841.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302d84;
/* rgb */ color: rgb(48, 45, 132);
/* oklch */ color: oklch(35.9% 0.141 278.1);
Tailwind
colors: {
  custom: {
    50: '#7366a9',
    500: '#302d84',
    950: '#000000',
  },
}
SCSS
$custom: #302d84;
$custom-light: #7366a9;
$custom-dark: #000000;
JSON
{
  "hex": "#302d84",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 242.069,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35887,
    "c": 0.14116,
    "h": 278.1
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#302D84
secondary
#ADB05D
accent
#D94FD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #302D84

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

Preview Lab → · Contrast checker → · Palette generator →

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