#30307F#30307F

#30307F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.130 H 277.6°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#30307F
RGBrgb(48, 48, 127)
HSLhsl(240, 45%, 34%)
HSVhsv(240, 62%, 50%)
CMYKcmyk(62.2%, 62.2%, 0%, 50.2%)
CIE-LABlab(24.56, 25.43, -44.85)
CIE-LCHlch(24.56, 51.55, 299.55°)
OKLaboklab(36% 0.0173 -0.1289)
OKLCHoklch(36% 0.13 277.6)
XYZxyz(6.1054, 4.2741, 20.5778)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30307F #7F7F30
analogous
#30587F #30307F #58307F
triadic
#30307F #7F3030 #307F30
tetradic
#30307F #7F3058 #7F7F30 #307F58
square
#30307F #7F3058 #7F7F30 #307F58
split-complementary
#30307F #7F5830 #587F30
monochromatic
#0E0E26 #1F1F53 #30307F #4141AB #6565C5

Accessibility & contrast

On white

11.32
#30307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#30307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30307F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30307F#FFFFFF#000000##FFFFFF
##30307F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #30307f;
/* rgb */ color: rgb(48, 48, 127);
/* oklch */ color: oklch(36.0% 0.130 277.6);
Tailwind
colors: {
  custom: {
    50: '#7168a5',
    500: '#30307f',
    950: '#000000',
  },
}
SCSS
$custom: #30307f;
$custom-light: #7168a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30307f",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35996,
    "c": 0.13008,
    "h": 277.6
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#30307F
secondary
#ACAC5F
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30307F

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

Preview Lab → · Contrast checker → · Palette generator →

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