#302D90#302D90

#302D90 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.158 H 276.8°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#302D90
RGBrgb(48, 45, 144)
HSLhsl(242, 52%, 37%)
HSVhsv(242, 69%, 56%)
CMYKcmyk(66.7%, 68.7%, 0%, 43.5%)
CIE-LABlab(25.32, 33.38, -54.22)
CIE-LCHlch(25.32, 63.67, 301.61°)
OKLaboklab(37.01% 0.0186 -0.1564)
OKLCHoklch(37.01% 0.158 276.8)
XYZxyz(7.1897, 4.5182, 26.8734)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D90 #8D902D
analogous
#2D5C90 #302D90 #622D90
triadic
#302D90 #90302D #2D9030
tetradic
#302D90 #902D5C #8D902D #2D9062
square
#302D90 #902D5C #8D902D #2D9062
split-complementary
#302D90 #90622D #5C902D
monochromatic
#111033 #201E61 #302D90 #403CBF #6B68D0

Accessibility & contrast

On white

11.03
#302D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#302D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D90
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D90#FFFFFF#000000##FFFFFF
##302D901.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00388E
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #302d90;
/* rgb */ color: rgb(48, 45, 144);
/* oklch */ color: oklch(37.0% 0.158 276.8);
Tailwind
colors: {
  custom: {
    50: '#7566b1',
    500: '#302d90',
    950: '#000000',
  },
}
SCSS
$custom: #302d90;
$custom-light: #7566b1;
$custom-dark: #000000;
JSON
{
  "hex": "#302d90",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 241.818,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37013,
    "c": 0.15755,
    "h": 276.8
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#302D90
secondary
#B4B662
accent
#DC4CD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #302D90

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

Preview Lab → · Contrast checker → · Palette generator →

#302D90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva