#302579#302579

#302579 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.136 H 282.1°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#302579
RGBrgb(48, 37, 121)
HSLhsl(248, 53%, 31%)
HSVhsv(248, 69%, 47%)
CMYKcmyk(60.3%, 69.4%, 0%, 52.5%)
CIE-LABlab(21.33, 30.50, -46.31)
CIE-LCHlch(21.33, 55.46, 303.37°)
OKLaboklab(33.48% 0.0285 -0.1333)
OKLCHoklch(33.48% 0.136 282.1)
XYZxyz(5.3306, 3.3316, 18.4476)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302579 #6E7925
analogous
#254479 #302579 #5A2579
triadic
#302579 #793025 #257930
tetradic
#302579 #792544 #6E7925 #25795A
square
#302579 #792544 #6E7925 #25795A
split-complementary
#302579 #795A25 #447925
monochromatic
#0B081B #1D174A #302579 #4333A8 #5F4FC9

Accessibility & contrast

On white

12.60
#302579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#302579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302579
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302579#FFFFFF#000000##FFFFFF
##3025791.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#053B4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #302579;
/* rgb */ color: rgb(48, 37, 121);
/* oklch */ color: oklch(33.5% 0.136 282.1);
Tailwind
colors: {
  custom: {
    50: '#7160a0',
    500: '#302579',
    950: '#000000',
  },
}
SCSS
$custom: #302579;
$custom-light: #7160a0;
$custom-dark: #000000;
JSON
{
  "hex": "#302579",
  "rgb": {
    "r": 48,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 247.857,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33475,
    "c": 0.1363,
    "h": 282.1
  },
  "luminance": 0.03332
}

Semantic roles & 50–950 ramp

primary
#302579
secondary
#9FAB4E
accent
#DD4BCA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #302579

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

Preview Lab → · Contrast checker → · Palette generator →

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