#302199#302199

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

Color values

HEX#302199
RGBrgb(48, 33, 153)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 78%, 60%)
CMYKcmyk(68.6%, 78.4%, 0%, 40%)
CIE-LABlab(23.72, 43.35, -62.39)
CIE-LCHlch(23.72, 75.97, 304.79°)
OKLaboklab(36.15% 0.0247 -0.1802)
OKLCHoklch(36.15% 0.182 277.8)
XYZxyz(7.5107, 4.0153, 30.5100)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302199 #8A9921
analogous
#214E99 #302199 #6C2199
triadic
#302199 #993021 #219930
tetradic
#302199 #99214E #8A9921 #21996C
square
#302199 #99214E #8A9921 #21996C
split-complementary
#302199 #996C21 #4E9921
monochromatic
#100B34 #201667 #302199 #402CCB #6959DB

Accessibility & contrast

On white

11.65
#302199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302199
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302199#FFFFFF#000000##FFFFFF
##3021991.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302199;
/* rgb */ color: rgb(48, 33, 153);
/* oklch */ color: oklch(36.2% 0.182 277.8);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#302199',
    950: '#000000',
  },
}
SCSS
$custom: #302199;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#302199",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 247.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36152,
    "c": 0.18192,
    "h": 277.8
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#302199
secondary
#B2BF56
accent
#E840D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #302199

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

Preview Lab → · Contrast checker → · Palette generator →

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