#302887#302887

#302887 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.152 H 279.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#302887
RGBrgb(48, 40, 135)
HSLhsl(245, 54%, 34%)
HSVhsv(245, 70%, 53%)
CMYKcmyk(64.4%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.32, 33.40, -51.89)
CIE-LCHlch(23.32, 61.71, 302.76°)
OKLaboklab(35.31% 0.0238 -0.1496)
OKLCHoklch(35.31% 0.152 279)
XYZxyz(6.3495, 3.8947, 23.3341)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302887 #7F8728
analogous
#285087 #302887 #602887
triadic
#302887 #873028 #288730
tetradic
#302887 #872850 #7F8728 #288760
square
#302887 #872850 #7F8728 #288760
split-complementary
#302887 #876028 #508728
monochromatic
#0E0C29 #1F1A58 #302887 #4136B6 #655BCE

Accessibility & contrast

On white

11.80
#302887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302887
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302887#FFFFFF#000000##FFFFFF
##3028871.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302887;
/* rgb */ color: rgb(48, 40, 135);
/* oklch */ color: oklch(35.3% 0.152 279.0);
Tailwind
colors: {
  custom: {
    50: '#7463ab',
    500: '#302887',
    950: '#000000',
  },
}
SCSS
$custom: #302887;
$custom-light: #7463ab;
$custom-dark: #000000;
JSON
{
  "hex": "#302887",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 245.053,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35314,
    "c": 0.15151,
    "h": 279
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#302887
secondary
#ACB457
accent
#DE4AD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302887

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

Preview Lab → · Contrast checker → · Palette generator →

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