#302D85#302D85

#302D85 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.143 H 278.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#302D85
RGBrgb(48, 45, 133)
HSLhsl(242, 49%, 35%)
HSVhsv(242, 66%, 52%)
CMYKcmyk(63.9%, 66.2%, 0%, 47.8%)
CIE-LABlab(24.32, 29.53, -49.01)
CIE-LCHlch(24.32, 57.22, 301.07°)
OKLaboklab(35.98% 0.0198 -0.1412)
OKLCHoklch(35.98% 0.143 278)
XYZxyz(6.3896, 4.1981, 22.6594)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D85 #82852D
analogous
#2D5685 #302D85 #5C2D85
triadic
#302D85 #85302D #2D8530
tetradic
#302D85 #852D56 #82852D #2D855C
square
#302D85 #852D56 #82852D #2D855C
split-complementary
#302D85 #855C2D #56852D
monochromatic
#0F0E2A #1F1E57 #302D85 #413CB3 #6662CA

Accessibility & contrast

On white

11.41
#302D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#302D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D85
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D85#FFFFFF#000000##FFFFFF
##302D851.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302d85;
/* rgb */ color: rgb(48, 45, 133);
/* oklch */ color: oklch(36.0% 0.143 278.0);
Tailwind
colors: {
  custom: {
    50: '#7366a9',
    500: '#302d85',
    950: '#000000',
  },
}
SCSS
$custom: #302d85;
$custom-light: #7366a9;
$custom-dark: #000000;
JSON
{
  "hex": "#302d85",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 242.045,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35979,
    "c": 0.14256,
    "h": 278
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302D85

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

Preview Lab → · Contrast checker → · Palette generator →

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