#302885#302885

#302885 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.149 H 279.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#302885
RGBrgb(48, 40, 133)
HSLhsl(245, 54%, 34%)
HSVhsv(245, 70%, 52%)
CMYKcmyk(63.9%, 69.9%, 0%, 47.8%)
CIE-LABlab(23.13, 32.71, -50.95)
CIE-LCHlch(23.13, 60.55, 302.70°)
OKLaboklab(35.12% 0.0241 -0.1469)
OKLCHoklch(35.12% 0.149 279.3)
XYZxyz(6.2100, 3.8389, 22.5995)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302885 #7D8528
analogous
#284F85 #302885 #5F2885
triadic
#302885 #853028 #288530
tetradic
#302885 #85284F #7D8528 #28855F
square
#302885 #85284F #7D8528 #28855F
split-complementary
#302885 #855F28 #4F8528
monochromatic
#0E0C27 #1F1A56 #302885 #4136B4 #645ACD

Accessibility & contrast

On white

11.88
#302885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#302885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302885
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302885#FFFFFF#000000##FFFFFF
##3028851.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302885;
/* rgb */ color: rgb(48, 40, 133);
/* oklch */ color: oklch(35.1% 0.149 279.3);
Tailwind
colors: {
  custom: {
    50: '#7363a9',
    500: '#302885',
    950: '#000000',
  },
}
SCSS
$custom: #302885;
$custom-light: #7363a9;
$custom-dark: #000000;
JSON
{
  "hex": "#302885",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 245.161,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3512,
    "c": 0.14883,
    "h": 279.3
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#302885
secondary
#ABB356
accent
#DD4BD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302885

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

Preview Lab → · Contrast checker → · Palette generator →

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