#302197#302197

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

Color values

HEX#302197
RGBrgb(48, 33, 151)
HSLhsl(248, 64%, 36%)
HSVhsv(248, 78%, 59%)
CMYKcmyk(68.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.50, 42.71, -61.52)
CIE-LCHlch(23.50, 74.89, 304.77°)
OKLaboklab(35.94% 0.0252 -0.1777)
OKLCHoklch(35.94% 0.179 278.1)
XYZxyz(7.3469, 3.9498, 29.6474)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302197 #889721
analogous
#214D97 #302197 #6B2197
triadic
#302197 #973021 #219730
tetradic
#302197 #97214D #889721 #21976B
square
#302197 #97214D #889721 #21976B
split-complementary
#302197 #976B21 #4D9721
monochromatic
#100B33 #201665 #302197 #402CC9 #6958DA

Accessibility & contrast

On white

11.73
#302197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302197
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302197#FFFFFF#000000##FFFFFF
##3021971.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302197;
/* rgb */ color: rgb(48, 33, 151);
/* oklch */ color: oklch(35.9% 0.179 278.1);
Tailwind
colors: {
  custom: {
    50: '#785fb7',
    500: '#302197',
    950: '#000000',
  },
}
SCSS
$custom: #302197;
$custom-light: #785fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#302197",
  "rgb": {
    "r": 48,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 247.627,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35935,
    "c": 0.17949,
    "h": 278.1
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#302197
secondary
#B1BE55
accent
#E741D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302197

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

Preview Lab → · Contrast checker → · Palette generator →

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