#302282#302282

#302282 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.152 H 281.2°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#302282
RGBrgb(48, 34, 130)
HSLhsl(249, 59%, 32%)
HSVhsv(249, 74%, 51%)
CMYKcmyk(63.1%, 73.8%, 0%, 49%)
CIE-LABlab(21.52, 35.34, -51.70)
CIE-LCHlch(21.52, 62.63, 304.35°)
OKLaboklab(33.88% 0.0295 -0.1491)
OKLCHoklch(33.88% 0.152 281.2)
XYZxyz(5.8189, 3.3837, 21.4613)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302282 #748222
analogous
#224482 #302282 #602282
triadic
#302282 #823022 #228230
tetradic
#302282 #822244 #748222 #228260
square
#302282 #822244 #748222 #228260
split-complementary
#302282 #826022 #448222
monochromatic
#0C0921 #1E1551 #302282 #422FB3 #614ED1

Accessibility & contrast

On white

12.52
#302282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#302282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302282
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302282#FFFFFF#000000##FFFFFF
##3022821.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302282;
/* rgb */ color: rgb(48, 34, 130);
/* oklch */ color: oklch(33.9% 0.152 281.2);
Tailwind
colors: {
  custom: {
    50: '#735fa7',
    500: '#302282',
    950: '#000000',
  },
}
SCSS
$custom: #302282;
$custom-light: #735fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#302282",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 248.75,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33877,
    "c": 0.15196,
    "h": 281.2
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#302282
secondary
#A5B44C
accent
#E246CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #302282

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

Preview Lab → · Contrast checker → · Palette generator →

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