#302396#302396

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

Color values

HEX#302396
RGBrgb(48, 35, 150)
HSLhsl(247, 62%, 36%)
HSVhsv(247, 77%, 59%)
CMYKcmyk(68%, 76.7%, 0%, 41.2%)
CIE-LABlab(23.78, 41.31, -60.45)
CIE-LCHlch(23.78, 73.22, 304.35°)
OKLaboklab(36.09% 0.0243 -0.1746)
OKLCHoklch(36.09% 0.176 277.9)
XYZxyz(7.3232, 4.0318, 29.2405)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302396 #899623
analogous
#235096 #302396 #6A2396
triadic
#302396 #963023 #239630
tetradic
#302396 #962350 #899623 #23966A
square
#302396 #962350 #899623 #23966A
split-complementary
#302396 #966A23 #509623
monochromatic
#100C33 #201764 #302396 #402FC8 #695BD9

Accessibility & contrast

On white

11.63
#302396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302396
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302396#FFFFFF#000000##FFFFFF
##3023961.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302396;
/* rgb */ color: rgb(48, 35, 150);
/* oklch */ color: oklch(36.1% 0.176 277.9);
Tailwind
colors: {
  custom: {
    50: '#7760b6',
    500: '#302396',
    950: '#000000',
  },
}
SCSS
$custom: #302396;
$custom-light: #7760b6;
$custom-dark: #000000;
JSON
{
  "hex": "#302396",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 246.783,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36094,
    "c": 0.17631,
    "h": 277.9
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#302396
secondary
#B2BD58
accent
#E543D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302396

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

Preview Lab → · Contrast checker → · Palette generator →

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