#302B72#302B72

#302B72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.118 H 281.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#302B72
RGBrgb(48, 43, 114)
HSLhsl(244, 45%, 31%)
HSVhsv(244, 62%, 45%)
CMYKcmyk(57.9%, 62.3%, 0%, 55.3%)
CIE-LABlab(22.20, 24.18, -40.41)
CIE-LCHlch(22.20, 47.09, 300.89°)
OKLaboklab(33.92% 0.023 -0.1159)
OKLCHoklch(33.92% 0.118 281.2)
XYZxyz(5.1191, 3.5707, 16.3358)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B72 #6D722B
analogous
#2B4972 #302B72 #532B72
triadic
#302B72 #72302B #2B7230
tetradic
#302B72 #722B49 #6D722B #2B7253
square
#302B72 #722B49 #6D722B #2B7253
split-complementary
#302B72 #72532B #49722B
monochromatic
#0B0919 #1D1A46 #302B72 #433C9E #5F58C0

Accessibility & contrast

On white

12.25
#302B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#302B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302B72
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B72#FFFFFF#000000##FFFFFF
##302B721.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#103C4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302b72;
/* rgb */ color: rgb(48, 43, 114);
/* oklch */ color: oklch(33.9% 0.118 281.2);
Tailwind
colors: {
  custom: {
    50: '#6f649b',
    500: '#302b72',
    950: '#000000',
  },
}
SCSS
$custom: #302b72;
$custom-light: #6f649b;
$custom-dark: #000000;
JSON
{
  "hex": "#302b72",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 244.225,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33922,
    "c": 0.11819,
    "h": 281.2
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#302B72
secondary
#9EA455
accent
#D553CC
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #302B72

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

Preview Lab → · Contrast checker → · Palette generator →

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