#302398#302398

#302398 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.179 H 277.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#302398
RGBrgb(48, 35, 152)
HSLhsl(247, 63%, 37%)
HSVhsv(247, 77%, 60%)
CMYKcmyk(68.4%, 77%, 0%, 40.4%)
CIE-LABlab(23.99, 41.96, -61.33)
CIE-LCHlch(23.99, 74.31, 304.37°)
OKLaboklab(36.31% 0.0238 -0.1772)
OKLCHoklch(36.31% 0.179 277.7)
XYZxyz(7.4856, 4.0968, 30.0960)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302398 #8B9823
analogous
#235198 #302398 #6B2398
triadic
#302398 #983023 #239830
tetradic
#302398 #982351 #8B9823 #23986B
square
#302398 #982351 #8B9823 #23986B
split-complementary
#302398 #986B23 #519823
monochromatic
#110C35 #201866 #302398 #402ECA #6A5CD9

Accessibility & contrast

On white

11.54
#302398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302398
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302398#FFFFFF#000000##FFFFFF
##3023981.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #302398;
/* rgb */ color: rgb(48, 35, 152);
/* oklch */ color: oklch(36.3% 0.179 277.7);
Tailwind
colors: {
  custom: {
    50: '#7860b7',
    500: '#302398',
    950: '#000000',
  },
}
SCSS
$custom: #302398;
$custom-light: #7860b7;
$custom-dark: #000000;
JSON
{
  "hex": "#302398",
  "rgb": {
    "r": 48,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 246.667,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36307,
    "c": 0.17878,
    "h": 277.7
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#302398
secondary
#B3BE59
accent
#E642D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #302398

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

Preview Lab → · Contrast checker → · Palette generator →

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