#302098#302098

#302098 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.182 H 278.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#302098
RGBrgb(48, 32, 152)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 79%, 60%)
CMYKcmyk(68.4%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.43, 43.55, -62.25)
CIE-LCHlch(23.43, 75.98, 304.97°)
OKLaboklab(35.92% 0.0255 -0.1798)
OKLCHoklch(35.92% 0.182 278.1)
XYZxyz(7.4011, 3.9278, 30.0678)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302098 #889820
analogous
#204C98 #302098 #6C2098
triadic
#302098 #983020 #209830
tetradic
#302098 #98204C #889820 #20986C
square
#302098 #98204C #889820 #20986C
split-complementary
#302098 #986C20 #4C9820
monochromatic
#100B33 #201565 #302098 #402BCB #6957DC

Accessibility & contrast

On white

11.76
#302098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#302098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302098
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302098#FFFFFF#000000##FFFFFF
##3020981.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302098;
/* rgb */ color: rgb(48, 32, 152);
/* oklch */ color: oklch(35.9% 0.182 278.1);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#302098',
    950: '#000000',
  },
}
SCSS
$custom: #302098;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#302098",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 248,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35916,
    "c": 0.18164,
    "h": 278.1
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#302098
secondary
#B1BF54
accent
#E840D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302098

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

Preview Lab → · Contrast checker → · Palette generator →

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