#302287#302287

#302287 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.158 H 280.3°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#302287
RGBrgb(48, 34, 135)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(64.4%, 74.8%, 0%, 47.1%)
CIE-LABlab(22.02, 36.99, -54.03)
CIE-LCHlch(22.02, 65.47, 304.40°)
OKLaboklab(34.39% 0.0284 -0.1559)
OKLCHoklch(34.39% 0.158 280.3)
XYZxyz(6.1627, 3.5212, 23.2719)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302287 #798722
analogous
#224687 #302287 #622287
triadic
#302287 #873022 #228730
tetradic
#302287 #872246 #798722 #228762
square
#302287 #872246 #798722 #228762
split-complementary
#302287 #876222 #468722
monochromatic
#0D0925 #1F1656 #302287 #412EB8 #6250D3

Accessibility & contrast

On white

12.32
#302287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302287
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302287#FFFFFF#000000##FFFFFF
##3022871.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302287;
/* rgb */ color: rgb(48, 34, 135);
/* oklch */ color: oklch(34.4% 0.158 280.3);
Tailwind
colors: {
  custom: {
    50: '#745fab',
    500: '#302287',
    950: '#000000',
  },
}
SCSS
$custom: #302287;
$custom-light: #745fab;
$custom-dark: #000000;
JSON
{
  "hex": "#302287",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 248.317,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34386,
    "c": 0.15843,
    "h": 280.3
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302287

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

Preview Lab → · Contrast checker → · Palette generator →

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