#302990#302990

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

Color values

HEX#302990
RGBrgb(48, 41, 144)
HSLhsl(244, 56%, 36%)
HSVhsv(244, 72%, 56%)
CMYKcmyk(66.7%, 71.5%, 0%, 43.5%)
CIE-LABlab(24.41, 35.85, -55.71)
CIE-LCHlch(24.41, 66.24, 302.76°)
OKLaboklab(36.36% 0.0216 -0.1608)
OKLCHoklch(36.36% 0.162 277.6)
XYZxyz(7.0443, 4.2273, 26.8249)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302990 #899029
analogous
#295690 #302990 #642990
triadic
#302990 #903029 #299030
tetradic
#302990 #902956 #899029 #299064
square
#302990 #902956 #899029 #299064
split-complementary
#302990 #906429 #569029
monochromatic
#100E31 #201B60 #302990 #4037C0 #6961D2

Accessibility & contrast

On white

11.38
#302990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#302990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302990
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302990#FFFFFF#000000##FFFFFF
##3029901.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00368E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #302990;
/* rgb */ color: rgb(48, 41, 144);
/* oklch */ color: oklch(36.4% 0.162 277.6);
Tailwind
colors: {
  custom: {
    50: '#7564b2',
    500: '#302990',
    950: '#000000',
  },
}
SCSS
$custom: #302990;
$custom-light: #7564b2;
$custom-dark: #000000;
JSON
{
  "hex": "#302990",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 144
  },
  "hsl": {
    "h": 244.078,
    "s": 55.676,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3636,
    "c": 0.16224,
    "h": 277.6
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#302990
secondary
#B2B85D
accent
#DF49D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #302990

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

Preview Lab → · Contrast checker → · Palette generator →

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