#302988#302988

#302988 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.152 H 278.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#302988
RGBrgb(48, 41, 136)
HSLhsl(244, 54%, 35%)
HSVhsv(244, 70%, 53%)
CMYKcmyk(64.7%, 69.9%, 0%, 46.7%)
CIE-LABlab(23.64, 33.12, -51.99)
CIE-LCHlch(23.64, 61.64, 302.50°)
OKLaboklab(35.58% 0.0228 -0.1499)
OKLCHoklch(35.58% 0.152 278.7)
XYZxyz(6.4544, 3.9913, 23.7181)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302988 #818829
analogous
#295288 #302988 #602988
triadic
#302988 #883029 #298830
tetradic
#302988 #882952 #818829 #298860
square
#302988 #882952 #818829 #298860
split-complementary
#302988 #886029 #528829
monochromatic
#0F0D2A #1F1B59 #302988 #4137B7 #665DCE

Accessibility & contrast

On white

11.68
#302988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#302988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302988
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302988#FFFFFF#000000##FFFFFF
##3029881.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302988;
/* rgb */ color: rgb(48, 41, 136);
/* oklch */ color: oklch(35.6% 0.152 278.7);
Tailwind
colors: {
  custom: {
    50: '#7464ac',
    500: '#302988',
    950: '#000000',
  },
}
SCSS
$custom: #302988;
$custom-light: #7464ac;
$custom-dark: #000000;
JSON
{
  "hex": "#302988",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 244.421,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35575,
    "c": 0.15165,
    "h": 278.7
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#302988
secondary
#ADB459
accent
#DD4BD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #302988

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

Preview Lab → · Contrast checker → · Palette generator →

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