#302198#302198

#302198 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.181 H 277.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#302198
RGBrgb(48, 33, 152)
HSLhsl(248, 64%, 36%)
HSVhsv(248, 78%, 60%)
CMYKcmyk(68.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.61, 43.03, -61.95)
CIE-LCHlch(23.61, 75.43, 304.78°)
OKLaboklab(36.04% 0.025 -0.179)
OKLCHoklch(36.04% 0.181 277.9)
XYZxyz(7.4284, 3.9824, 30.0769)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302198 #899821
analogous
#214E98 #302198 #6C2198
triadic
#302198 #983021 #219830
tetradic
#302198 #98214E #899821 #21986C
square
#302198 #98214E #899821 #21986C
split-complementary
#302198 #986C21 #4E9821
monochromatic
#100B33 #201666 #302198 #402CCA #6959DB

Accessibility & contrast

On white

11.69
#302198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#302198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302198
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302198#FFFFFF#000000##FFFFFF
##3021981.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302198;
/* rgb */ color: rgb(48, 33, 152);
/* oklch */ color: oklch(36.0% 0.181 277.9);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#302198',
    950: '#000000',
  },
}
SCSS
$custom: #302198;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#302198",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 247.563,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36043,
    "c": 0.18071,
    "h": 277.9
  },
  "luminance": 0.03983
}

Semantic roles & 50–950 ramp

primary
#302198
secondary
#B2BF56
accent
#E740D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302198

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

Preview Lab → · Contrast checker → · Palette generator →

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