#302971#302971

#302971 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.5% C 0.120 H 282.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#302971
RGBrgb(48, 41, 113)
HSLhsl(246, 47%, 30%)
HSVhsv(246, 64%, 44%)
CMYKcmyk(57.5%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.60, 25.16, -40.74)
CIE-LCHlch(21.60, 47.88, 301.70°)
OKLaboklab(33.46% 0.0252 -0.1169)
OKLCHoklch(33.46% 0.12 282.2)
XYZxyz(4.9916, 3.4062, 16.0140)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302971 #6A7129
analogous
#294671 #302971 #542971
triadic
#302971 #713029 #297130
tetradic
#302971 #712946 #6A7129 #297154
square
#302971 #712946 #6A7129 #297154
split-complementary
#302971 #715429 #467129
monochromatic
#0A0817 #1D1944 #302971 #43399E #5E54C1

Accessibility & contrast

On white

12.49
#302971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#302971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302971
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302971#FFFFFF#000000##FFFFFF
##3029711.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#123A48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #302971;
/* rgb */ color: rgb(48, 41, 113);
/* oklch */ color: oklch(33.5% 0.120 282.2);
Tailwind
colors: {
  custom: {
    50: '#6f639a',
    500: '#302971',
    950: '#000000',
  },
}
SCSS
$custom: #302971;
$custom-light: #6f639a;
$custom-dark: #000000;
JSON
{
  "hex": "#302971",
  "rgb": {
    "r": 48,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 245.833,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.11959,
    "h": 282.2
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#302971
secondary
#9BA353
accent
#D651C9
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #302971

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

Preview Lab → · Contrast checker → · Palette generator →

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