#302397#302397

#302397 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.178 H 277.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#302397
RGBrgb(48, 35, 151)
HSLhsl(247, 62%, 36%)
HSVhsv(247, 77%, 59%)
CMYKcmyk(68.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.88, 41.63, -60.89)
CIE-LCHlch(23.88, 73.77, 304.36°)
OKLaboklab(36.2% 0.0241 -0.1759)
OKLCHoklch(36.2% 0.178 277.8)
XYZxyz(7.4041, 4.0642, 29.6664)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302397 #8A9723
analogous
#235097 #302397 #6A2397
triadic
#302397 #973023 #239730
tetradic
#302397 #972350 #8A9723 #23976A
square
#302397 #972350 #8A9723 #23976A
split-complementary
#302397 #976A23 #509723
monochromatic
#100C34 #201765 #302397 #402FC9 #695BD9

Accessibility & contrast

On white

11.58
#302397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#302397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302397
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302397#FFFFFF#000000##FFFFFF
##3023971.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302397;
/* rgb */ color: rgb(48, 35, 151);
/* oklch */ color: oklch(36.2% 0.178 277.8);
Tailwind
colors: {
  custom: {
    50: '#7860b7',
    500: '#302397',
    950: '#000000',
  },
}
SCSS
$custom: #302397;
$custom-light: #7860b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302397",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 246.724,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.362,
    "c": 0.17755,
    "h": 277.8
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#302397
secondary
#B2BE58
accent
#E542D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302397

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

Preview Lab → · Contrast checker → · Palette generator →

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