#302796#302796

#302796 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.172 H 277.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#302796
RGBrgb(48, 39, 150)
HSLhsl(245, 59%, 37%)
HSVhsv(245, 74%, 59%)
CMYKcmyk(68%, 74%, 0%, 41.2%)
CIE-LABlab(24.58, 39.05, -59.13)
CIE-LCHlch(24.58, 70.86, 303.44°)
OKLaboklab(36.66% 0.0218 -0.1708)
OKLCHoklch(36.66% 0.172 277.3)
XYZxyz(7.4477, 4.2808, 29.2820)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302796 #8D9627
analogous
#275696 #302796 #682796
triadic
#302796 #963027 #279630
tetradic
#302796 #962756 #8D9627 #279668
square
#302796 #962756 #8D9627 #279668
split-complementary
#302796 #966827 #569627
monochromatic
#110E35 #201A65 #302796 #4034C7 #6B61D6

Accessibility & contrast

On white

11.31
#302796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#302796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302796
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302796#FFFFFF#000000##FFFFFF
##3027961.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302796;
/* rgb */ color: rgb(48, 39, 150);
/* oklch */ color: oklch(36.7% 0.172 277.3);
Tailwind
colors: {
  custom: {
    50: '#7763b6',
    500: '#302796',
    950: '#000000',
  },
}
SCSS
$custom: #302796;
$custom-light: #7763b6;
$custom-dark: #000000;
JSON
{
  "hex": "#302796",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 244.865,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36662,
    "c": 0.17219,
    "h": 277.3
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#302796
secondary
#B4BC5D
accent
#E246D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302796

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

Preview Lab → · Contrast checker → · Palette generator →

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