#302298#302298

#302298 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.180 H 277.8°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#302298
RGBrgb(48, 34, 152)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(68.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.80, 42.50, -61.65)
CIE-LCHlch(23.80, 74.87, 304.58°)
OKLaboklab(36.17% 0.0244 -0.1781)
OKLCHoklch(36.17% 0.18 277.8)
XYZxyz(7.4566, 4.0388, 30.0863)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302298 #8A9822
analogous
#224F98 #302298 #6B2298
triadic
#302298 #983022 #229830
tetradic
#302298 #98224F #8A9822 #22986B
square
#302298 #98224F #8A9822 #22986B
split-complementary
#302298 #986B22 #4F9822
monochromatic
#100C34 #201766 #302298 #402DCA #695ADA

Accessibility & contrast

On white

11.62
#302298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302298
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302298#FFFFFF#000000##FFFFFF
##3022981.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302298;
/* rgb */ color: rgb(48, 34, 152);
/* oklch */ color: oklch(36.2% 0.180 277.8);
Tailwind
colors: {
  custom: {
    50: '#7860b8',
    500: '#302298',
    950: '#000000',
  },
}
SCSS
$custom: #302298;
$custom-light: #7860b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302298",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 247.119,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.17975,
    "h": 277.8
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#302298
secondary
#B2BE57
accent
#E641D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302298

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

Preview Lab → · Contrast checker → · Palette generator →

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