#302297#302297

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

Color values

HEX#302297
RGBrgb(48, 34, 151)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 77%, 59%)
CMYKcmyk(68.2%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.69, 42.18, -61.21)
CIE-LCHlch(23.69, 74.33, 304.57°)
OKLaboklab(36.07% 0.0246 -0.1768)
OKLCHoklch(36.07% 0.179 277.9)
XYZxyz(7.3751, 4.0062, 29.6568)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302297 #899722
analogous
#224F97 #302297 #6B2297
triadic
#302297 #973022 #229730
tetradic
#302297 #97224F #899722 #22976B
square
#302297 #97224F #899722 #22976B
split-complementary
#302297 #976B22 #4F9722
monochromatic
#100C33 #201765 #302297 #402DC9 #695ADA

Accessibility & contrast

On white

11.66
#302297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302297
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302297#FFFFFF#000000##FFFFFF
##3022971.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.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: #302297;
/* rgb */ color: rgb(48, 34, 151);
/* oklch */ color: oklch(36.1% 0.179 277.9);
Tailwind
colors: {
  custom: {
    50: '#7860b7',
    500: '#302297',
    950: '#000000',
  },
}
SCSS
$custom: #302297;
$custom-light: #7860b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302297",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 247.179,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36066,
    "c": 0.17853,
    "h": 277.9
  },
  "luminance": 0.04007
}

Semantic roles & 50–950 ramp

primary
#302297
secondary
#B2BE57
accent
#E642D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302297

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

Preview Lab → · Contrast checker → · Palette generator →

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