#302B71#302B71

#302B71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.8% C 0.117 H 281.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#302B71
RGBrgb(48, 43, 113)
HSLhsl(244, 45%, 31%)
HSVhsv(244, 62%, 44%)
CMYKcmyk(57.5%, 61.9%, 0%, 55.7%)
CIE-LABlab(22.12, 23.83, -39.90)
CIE-LCHlch(22.12, 46.47, 300.84°)
OKLaboklab(33.84% 0.023 -0.1144)
OKLCHoklch(33.84% 0.117 281.4)
XYZxyz(5.0625, 3.5481, 16.0377)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302B71 #6C712B
analogous
#2B4971 #302B71 #532B71
triadic
#302B71 #71302B #2B7130
tetradic
#302B71 #712B49 #6C712B #2B7153
square
#302B71 #712B49 #6C712B #2B7153
split-complementary
#302B71 #71532B #49712B
monochromatic
#0A0918 #1D1A45 #302B71 #433C9D #5F57BF

Accessibility & contrast

On white

12.28
#302B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302B71
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302B71#FFFFFF#000000##FFFFFF
##302B711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#113C49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #302b71;
/* rgb */ color: rgb(48, 43, 113);
/* oklch */ color: oklch(33.8% 0.117 281.4);
Tailwind
colors: {
  custom: {
    50: '#6f649a',
    500: '#302b71',
    950: '#000000',
  },
}
SCSS
$custom: #302b71;
$custom-light: #6f649a;
$custom-dark: #000000;
JSON
{
  "hex": "#302b71",
  "rgb": {
    "r": 48,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 244.286,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33837,
    "c": 0.11672,
    "h": 281.4
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#302B71
secondary
#9DA355
accent
#D553CB
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #302B71

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

Preview Lab → · Contrast checker → · Palette generator →

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