#302696#302696

#302696 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.173 H 277.5°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#302696
RGBrgb(48, 38, 150)
HSLhsl(245, 60%, 37%)
HSVhsv(245, 75%, 59%)
CMYKcmyk(68%, 74.7%, 0%, 41.2%)
CIE-LABlab(24.37, 39.63, -59.47)
CIE-LCHlch(24.37, 71.46, 303.68°)
OKLaboklab(36.52% 0.0225 -0.1718)
OKLCHoklch(36.52% 0.173 277.5)
XYZxyz(7.4153, 4.2160, 29.2712)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302696 #8C9626
analogous
#265496 #302696 #682696
triadic
#302696 #963026 #269630
tetradic
#302696 #962654 #8C9626 #269668
square
#302696 #962654 #8C9626 #269668
split-complementary
#302696 #966826 #549626
monochromatic
#110D34 #201A65 #302696 #4032C7 #6A60D7

Accessibility & contrast

On white

11.39
#302696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#302696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302696
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302696#FFFFFF#000000##FFFFFF
##3026961.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302696;
/* rgb */ color: rgb(48, 38, 150);
/* oklch */ color: oklch(36.5% 0.173 277.5);
Tailwind
colors: {
  custom: {
    50: '#7762b6',
    500: '#302696',
    950: '#000000',
  },
}
SCSS
$custom: #302696;
$custom-light: #7762b6;
$custom-dark: #000000;
JSON
{
  "hex": "#302696",
  "rgb": {
    "r": 48,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 245.357,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36516,
    "c": 0.17324,
    "h": 277.5
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#302696
secondary
#B3BC5C
accent
#E345D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302696

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

Preview Lab → · Contrast checker → · Palette generator →

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