#302288#302288

#302288 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.160 H 280.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#302288
RGBrgb(48, 34, 136)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(64.7%, 75%, 0%, 46.7%)
CIE-LABlab(22.12, 37.32, -54.49)
CIE-LCHlch(22.12, 66.04, 304.41°)
OKLaboklab(34.49% 0.0282 -0.1572)
OKLCHoklch(34.49% 0.16 280.2)
XYZxyz(6.2335, 3.5495, 23.6444)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302288 #7A8822
analogous
#224788 #302288 #632288
triadic
#302288 #883022 #228830
tetradic
#302288 #882247 #7A8822 #228863
square
#302288 #882247 #7A8822 #228863
split-complementary
#302288 #886322 #478822
monochromatic
#0D0A26 #1F1657 #302288 #412EB9 #6351D3

Accessibility & contrast

On white

12.28
#302288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#302288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302288
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302288#FFFFFF#000000##FFFFFF
##3022881.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302288;
/* rgb */ color: rgb(48, 34, 136);
/* oklch */ color: oklch(34.5% 0.160 280.2);
Tailwind
colors: {
  custom: {
    50: '#745fac',
    500: '#302288',
    950: '#000000',
  },
}
SCSS
$custom: #302288;
$custom-light: #745fac;
$custom-dark: #000000;
JSON
{
  "hex": "#302288",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 248.235,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34488,
    "c": 0.15971,
    "h": 280.2
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#302288
secondary
#A9B74F
accent
#E345CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #302288

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

Preview Lab → · Contrast checker → · Palette generator →

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