#302D71#302D71

#302D71 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.2% C 0.114 H 280.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#302D71
RGBrgb(48, 45, 113)
HSLhsl(243, 43%, 31%)
HSVhsv(243, 60%, 44%)
CMYKcmyk(57.5%, 60.2%, 0%, 55.7%)
CIE-LABlab(22.64, 22.48, -39.05)
CIE-LCHlch(22.64, 45.06, 299.92°)
OKLaboklab(34.23% 0.0208 -0.1119)
OKLCHoklch(34.23% 0.114 280.5)
XYZxyz(5.1370, 3.6971, 16.0625)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302D71 #6E712D
analogous
#2D4C71 #302D71 #522D71
triadic
#302D71 #71302D #2D7130
tetradic
#302D71 #712D4C #6E712D #2D7152
square
#302D71 #712D4C #6E712D #2D7152
split-complementary
#302D71 #71522D #4C712D
monochromatic
#0B0A19 #1D1C45 #302D71 #433E9D #5F5BBE

Accessibility & contrast

On white

12.07
#302D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#302D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302D71
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302D71#FFFFFF#000000##FFFFFF
##302D711.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#113D4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #302d71;
/* rgb */ color: rgb(48, 45, 113);
/* oklch */ color: oklch(34.2% 0.114 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f669a',
    500: '#302d71',
    950: '#000000',
  },
}
SCSS
$custom: #302d71;
$custom-light: #6f669a;
$custom-dark: #000000;
JSON
{
  "hex": "#302d71",
  "rgb": {
    "r": 48,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 242.647,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34226,
    "c": 0.11381,
    "h": 280.5
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#302D71
secondary
#9FA357
accent
#D355CD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #302D71

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

Preview Lab → · Contrast checker → · Palette generator →

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