#302889#302889

#302889 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.154 H 278.8°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#302889
RGBrgb(48, 40, 137)
HSLhsl(245, 55%, 35%)
HSVhsv(245, 71%, 54%)
CMYKcmyk(65%, 70.8%, 0%, 46.3%)
CIE-LABlab(23.51, 34.08, -52.83)
CIE-LCHlch(23.51, 62.87, 302.82°)
OKLaboklab(35.51% 0.0235 -0.1524)
OKLCHoklch(35.51% 0.154 278.8)
XYZxyz(6.4916, 3.9516, 24.0827)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302889 #818928
analogous
#285189 #302889 #602889
triadic
#302889 #893028 #288930
tetradic
#302889 #892851 #818928 #288960
square
#302889 #892851 #818928 #288960
split-complementary
#302889 #896028 #518928
monochromatic
#0F0C2A #1F1A5A #302889 #4136B8 #665CCF

Accessibility & contrast

On white

11.73
#302889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302889
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302889#FFFFFF#000000##FFFFFF
##3028891.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302889;
/* rgb */ color: rgb(48, 40, 137);
/* oklch */ color: oklch(35.5% 0.154 278.8);
Tailwind
colors: {
  custom: {
    50: '#7463ac',
    500: '#302889',
    950: '#000000',
  },
}
SCSS
$custom: #302889;
$custom-light: #7463ac;
$custom-dark: #000000;
JSON
{
  "hex": "#302889",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 244.948,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35509,
    "c": 0.15418,
    "h": 278.8
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#302889
secondary
#ADB558
accent
#DE4AD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302889

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

Preview Lab → · Contrast checker → · Palette generator →

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