#302899#302899

#302899 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.175 H 276.8°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#302899
RGBrgb(48, 40, 153)
HSLhsl(244, 59%, 38%)
HSVhsv(244, 74%, 60%)
CMYKcmyk(68.6%, 73.9%, 0%, 40%)
CIE-LABlab(25.09, 39.47, -60.13)
CIE-LCHlch(25.09, 71.93, 303.28°)
OKLaboklab(37.12% 0.0206 -0.1737)
OKLCHoklch(37.12% 0.175 276.8)
XYZxyz(7.7256, 4.4452, 30.5817)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302899 #919928
analogous
#285899 #302899 #682899
triadic
#302899 #993028 #289930
tetradic
#302899 #992858 #919928 #289968
square
#302899 #992858 #919928 #289968
split-complementary
#302899 #996828 #589928
monochromatic
#120F38 #211B68 #302899 #3F35CA #6D65D7

Accessibility & contrast

On white

11.12
#302899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#302899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302899
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302899#FFFFFF#000000##FFFFFF
##3028991.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302899;
/* rgb */ color: rgb(48, 40, 153);
/* oklch */ color: oklch(37.1% 0.175 276.8);
Tailwind
colors: {
  custom: {
    50: '#7864b8',
    500: '#302899',
    950: '#000000',
  },
}
SCSS
$custom: #302899;
$custom-light: #7864b8;
$custom-dark: #000000;
JSON
{
  "hex": "#302899",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 244.248,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37119,
    "c": 0.17494,
    "h": 276.8
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#302899
secondary
#B6BD60
accent
#E246D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #302899

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

Preview Lab → · Contrast checker → · Palette generator →

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