#302882#302882

#302882 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.145 H 279.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#302882
RGBrgb(48, 40, 130)
HSLhsl(245, 53%, 33%)
HSVhsv(245, 69%, 51%)
CMYKcmyk(63.1%, 69.2%, 0%, 49%)
CIE-LABlab(22.85, 31.68, -49.52)
CIE-LCHlch(22.85, 58.79, 302.61°)
OKLaboklab(34.83% 0.0245 -0.1427)
OKLCHoklch(34.83% 0.145 279.8)
XYZxyz(6.0057, 3.7572, 21.5235)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302882 #7A8228
analogous
#284D82 #302882 #5D2882
triadic
#302882 #823028 #288230
tetradic
#302882 #82284D #7A8228 #28825D
square
#302882 #82284D #7A8228 #28825D
split-complementary
#302882 #825D28 #4D8228
monochromatic
#0D0B24 #1F1A53 #302882 #4136B1 #6359CC

Accessibility & contrast

On white

11.99
#302882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#302882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302882
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302882#FFFFFF#000000##FFFFFF
##3028821.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302882;
/* rgb */ color: rgb(48, 40, 130);
/* oklch */ color: oklch(34.8% 0.145 279.8);
Tailwind
colors: {
  custom: {
    50: '#7363a7',
    500: '#302882',
    950: '#000000',
  },
}
SCSS
$custom: #302882;
$custom-light: #7363a7;
$custom-dark: #000000;
JSON
{
  "hex": "#302882",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 245.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34833,
    "c": 0.14477,
    "h": 279.8
  },
  "luminance": 0.03758
}

Semantic roles & 50–950 ramp

primary
#302882
secondary
#A9B155
accent
#DC4BCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302882

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

Preview Lab → · Contrast checker → · Palette generator →

#302882 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva