#302997#302997

#302997 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.171 H 276.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#302997
RGBrgb(48, 41, 151)
HSLhsl(244, 57%, 38%)
HSVhsv(244, 73%, 59%)
CMYKcmyk(68.2%, 72.8%, 0%, 40.8%)
CIE-LABlab(25.10, 38.21, -58.89)
CIE-LCHlch(25.10, 70.20, 302.98°)
OKLaboklab(37.06% 0.0203 -0.1701)
OKLCHoklch(37.06% 0.171 276.8)
XYZxyz(7.5960, 4.4480, 29.7304)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302997 #909729
analogous
#295997 #302997 #672997
triadic
#302997 #973029 #299730
tetradic
#302997 #972959 #909729 #299767
square
#302997 #972959 #909729 #299767
split-complementary
#302997 #976729 #599729
monochromatic
#110F37 #211C67 #302997 #3F36C7 #6C65D5

Accessibility & contrast

On white

11.11
#302997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#302997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302997
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302997#FFFFFF#000000##FFFFFF
##3029971.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302997;
/* rgb */ color: rgb(48, 41, 151);
/* oklch */ color: oklch(37.1% 0.171 276.8);
Tailwind
colors: {
  custom: {
    50: '#7764b7',
    500: '#302997',
    950: '#000000',
  },
}
SCSS
$custom: #302997;
$custom-light: #7764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302997",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 243.818,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37064,
    "c": 0.17131,
    "h": 276.8
  },
  "luminance": 0.04449
}

Semantic roles & 50–950 ramp

primary
#302997
secondary
#B5BB61
accent
#E147D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #302997

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

Preview Lab → · Contrast checker → · Palette generator →

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