#302A80#302A80

#302A80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.139 H 279.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#302A80
RGBrgb(48, 42, 128)
HSLhsl(244, 51%, 33%)
HSVhsv(244, 67%, 50%)
CMYKcmyk(62.5%, 67.2%, 0%, 49.8%)
CIE-LABlab(23.14, 29.72, -47.78)
CIE-LCHlch(23.14, 56.27, 301.88°)
OKLaboklab(34.99% 0.023 -0.1376)
OKLCHoklch(34.99% 0.139 279.5)
XYZxyz(5.9419, 3.8424, 20.8464)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A80 #7A802A
analogous
#2A4F80 #302A80 #5B2A80
triadic
#302A80 #80302A #2A8030
tetradic
#302A80 #802A4F #7A802A #2A805B
square
#302A80 #802A4F #7A802A #2A805B
split-complementary
#302A80 #805B2A #4F802A
monochromatic
#0D0C24 #1F1B52 #302A80 #4139AE #635BC9

Accessibility & contrast

On white

11.87
#302A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#302A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A80
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A80#FFFFFF#000000##FFFFFF
##302A801.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302a80;
/* rgb */ color: rgb(48, 42, 128);
/* oklch */ color: oklch(35.0% 0.139 279.5);
Tailwind
colors: {
  custom: {
    50: '#7264a6',
    500: '#302a80',
    950: '#000000',
  },
}
SCSS
$custom: #302a80;
$custom-light: #7264a6;
$custom-dark: #000000;
JSON
{
  "hex": "#302a80",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 244.186,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34987,
    "c": 0.13949,
    "h": 279.5
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#302A80
secondary
#A9AF57
accent
#DA4ED0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #302A80

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

Preview Lab → · Contrast checker → · Palette generator →

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