#302277#302277

#302277 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.137 H 283.3°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#302277
RGBrgb(48, 34, 119)
HSLhsl(250, 56%, 30%)
HSVhsv(250, 71%, 47%)
CMYKcmyk(59.7%, 71.4%, 0%, 53.3%)
CIE-LABlab(20.46, 31.69, -46.46)
CIE-LCHlch(20.46, 56.24, 304.30°)
OKLaboklab(32.79% 0.0316 -0.1337)
OKLCHoklch(32.79% 0.137 283.3)
XYZxyz(5.1197, 3.1040, 17.7785)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302277 #697722
analogous
#223F77 #302277 #5A2277
triadic
#302277 #773022 #227730
tetradic
#302277 #77223F #697722 #22775A
square
#302277 #77223F #697722 #22775A
split-complementary
#302277 #775A22 #3F7722
monochromatic
#0A0718 #1D1447 #302277 #4330A7 #5E49CB

Accessibility & contrast

On white

12.96
#302277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#302277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302277
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302277#FFFFFF#000000##FFFFFF
##3022771.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#0A3849
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #302277;
/* rgb */ color: rgb(48, 34, 119);
/* oklch */ color: oklch(32.8% 0.137 283.3);
Tailwind
colors: {
  custom: {
    50: '#715e9f',
    500: '#302277',
    950: '#000000',
  },
}
SCSS
$custom: #302277;
$custom-light: #715e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#302277",
  "rgb": {
    "r": 48,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 249.882,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32792,
    "c": 0.1374,
    "h": 283.3
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#302277
secondary
#9AAA4B
accent
#DF49C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #302277

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

Preview Lab → · Contrast checker → · Palette generator →

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