#302286#302286

#302286 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.157 H 280.5°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#302286
RGBrgb(48, 34, 134)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(64.2%, 74.6%, 0%, 47.5%)
CIE-LABlab(21.92, 36.66, -53.56)
CIE-LCHlch(21.92, 64.91, 304.39°)
OKLaboklab(34.28% 0.0287 -0.1545)
OKLCHoklch(34.28% 0.157 280.5)
XYZxyz(6.0927, 3.4932, 22.9028)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302286 #788622
analogous
#224686 #302286 #622286
triadic
#302286 #863022 #228630
tetradic
#302286 #862246 #788622 #228662
square
#302286 #862246 #788622 #228662
split-complementary
#302286 #866222 #468622
monochromatic
#0D0924 #1F1655 #302286 #412EB7 #6250D3

Accessibility & contrast

On white

12.36
#302286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#302286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302286
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302286#FFFFFF#000000##FFFFFF
##3022861.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302286;
/* rgb */ color: rgb(48, 34, 134);
/* oklch */ color: oklch(34.3% 0.157 280.5);
Tailwind
colors: {
  custom: {
    50: '#745faa',
    500: '#302286',
    950: '#000000',
  },
}
SCSS
$custom: #302286;
$custom-light: #745faa;
$custom-dark: #000000;
JSON
{
  "hex": "#302286",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 248.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.15714,
    "h": 280.5
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#302286
secondary
#A7B64E
accent
#E345CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302286

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

Preview Lab → · Contrast checker → · Palette generator →

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