#302498#302498

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

Color values

HEX#302498
RGBrgb(48, 36, 152)
HSLhsl(246, 62%, 37%)
HSVhsv(246, 76%, 60%)
CMYKcmyk(68.4%, 76.3%, 0%, 40.4%)
CIE-LABlab(24.18, 41.41, -61.02)
CIE-LCHlch(24.18, 73.74, 304.16°)
OKLaboklab(36.44% 0.0232 -0.1763)
OKLCHoklch(36.44% 0.178 277.5)
XYZxyz(7.5155, 4.1565, 30.1059)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302498 #8C9824
analogous
#245298 #302498 #6A2498
triadic
#302498 #983024 #249830
tetradic
#302498 #982452 #8C9824 #24986A
square
#302498 #982452 #8C9824 #24986A
split-complementary
#302498 #986A24 #529824
monochromatic
#110D35 #201867 #302498 #4030C9 #6A5ED9

Accessibility & contrast

On white

11.47
#302498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#302498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302498
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302498#FFFFFF#000000##FFFFFF
##3024981.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302498;
/* rgb */ color: rgb(48, 36, 152);
/* oklch */ color: oklch(36.4% 0.178 277.5);
Tailwind
colors: {
  custom: {
    50: '#7861b7',
    500: '#302498',
    950: '#000000',
  },
}
SCSS
$custom: #302498;
$custom-light: #7861b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302498",
  "rgb": {
    "r": 48,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 246.207,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36443,
    "c": 0.1778,
    "h": 277.5
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#302498
secondary
#B3BE5A
accent
#E543D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302498

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

Preview Lab → · Contrast checker → · Palette generator →

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