#302097#302097

#302097 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.180 H 278.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#302097
RGBrgb(48, 32, 151)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(68.2%, 78.8%, 0%, 40.8%)
CIE-LABlab(23.32, 43.23, -61.82)
CIE-LCHlch(23.32, 75.44, 304.97°)
OKLaboklab(35.81% 0.0258 -0.1786)
OKLCHoklch(35.81% 0.18 278.2)
XYZxyz(7.3195, 3.8951, 29.6383)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302097 #879720
analogous
#204B97 #302097 #6B2097
triadic
#302097 #973020 #209730
tetradic
#302097 #97204B #879720 #20976B
square
#302097 #97204B #879720 #20976B
split-complementary
#302097 #976B20 #4B9720
monochromatic
#100B32 #201564 #302097 #402BC9 #6856DB

Accessibility & contrast

On white

11.80
#302097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302097
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302097#FFFFFF#000000##FFFFFF
##3020971.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302097;
/* rgb */ color: rgb(48, 32, 151);
/* oklch */ color: oklch(35.8% 0.180 278.2);
Tailwind
colors: {
  custom: {
    50: '#785fb7',
    500: '#302097',
    950: '#000000',
  },
}
SCSS
$custom: #302097;
$custom-light: #785fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#302097",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 248.067,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35807,
    "c": 0.18043,
    "h": 278.2
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #302097

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

Preview Lab → · Contrast checker → · Palette generator →

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