#30307E#30307E

#30307E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.129 H 277.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#30307E
RGBrgb(48, 48, 126)
HSLhsl(240, 45%, 34%)
HSVhsv(240, 62%, 49%)
CMYKcmyk(61.9%, 61.9%, 0%, 50.6%)
CIE-LABlab(24.48, 25.07, -44.35)
CIE-LCHlch(24.48, 50.95, 299.48°)
OKLaboklab(35.91% 0.0173 -0.1275)
OKLCHoklch(35.91% 0.129 277.7)
XYZxyz(6.0406, 4.2482, 20.2363)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30307E #7E7E30
analogous
#30577E #30307E #57307E
triadic
#30307E #7E3030 #307E30
tetradic
#30307E #7E3057 #7E7E30 #307E57
square
#30307E #7E3057 #7E7E30 #307E57
split-complementary
#30307E #7E5730 #577E30
monochromatic
#0E0E25 #1F1F52 #30307E #4141AA #6464C4

Accessibility & contrast

On white

11.35
#30307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#30307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30307E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30307E#FFFFFF#000000##FFFFFF
##30307E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30307e;
/* rgb */ color: rgb(48, 48, 126);
/* oklch */ color: oklch(35.9% 0.129 277.7);
Tailwind
colors: {
  custom: {
    50: '#7168a4',
    500: '#30307e',
    950: '#000000',
  },
}
SCSS
$custom: #30307e;
$custom-light: #7168a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30307e",
  "rgb": {
    "r": 48,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3591,
    "c": 0.12864,
    "h": 277.7
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30307E

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

Preview Lab → · Contrast checker → · Palette generator →

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