#30277F#30277F

#30277F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.142 H 280.5°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#30277F
RGBrgb(48, 39, 127)
HSLhsl(246, 53%, 33%)
HSVhsv(246, 69%, 50%)
CMYKcmyk(62.2%, 69.3%, 0%, 50.2%)
CIE-LABlab(22.34, 31.29, -48.46)
CIE-LCHlch(22.34, 57.68, 302.85°)
OKLaboklab(34.38% 0.0258 -0.1396)
OKLCHoklch(34.38% 0.142 280.5)
XYZxyz(5.7740, 3.6113, 20.4673)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30277F #767F27
analogous
#274A7F #30277F #5C277F
triadic
#30277F #7F3027 #277F30
tetradic
#30277F #7F274A #767F27 #277F5C
square
#30277F #7F274A #767F27 #277F5C
split-complementary
#30277F #7F5C27 #4A7F27
monochromatic
#0D0A21 #1E1950 #30277F #4235AE #6155CB

Accessibility & contrast

On white

12.19
#30277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#30277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30277F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30277F#FFFFFF#000000##FFFFFF
##30277F1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #30277f;
/* rgb */ color: rgb(48, 39, 127);
/* oklch */ color: oklch(34.4% 0.142 280.5);
Tailwind
colors: {
  custom: {
    50: '#7262a5',
    500: '#30277f',
    950: '#000000',
  },
}
SCSS
$custom: #30277f;
$custom-light: #7262a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30277f",
  "rgb": {
    "r": 48,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 246.136,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34379,
    "c": 0.14195,
    "h": 280.5
  },
  "luminance": 0.03612
}

Semantic roles & 50–950 ramp

primary
#30277F
secondary
#A6B052
accent
#DC4BCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #30277F

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

Preview Lab → · Contrast checker → · Palette generator →

#30277F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva