#30337E#30337E

#30337E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.124 H 276.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#30337E
RGBrgb(48, 51, 126)
HSLhsl(238, 45%, 34%)
HSVhsv(238, 62%, 49%)
CMYKcmyk(61.9%, 59.5%, 0%, 50.6%)
CIE-LABlab(25.27, 23.05, -43.07)
CIE-LCHlch(25.27, 48.85, 298.16°)
OKLaboklab(36.49% 0.0142 -0.1237)
OKLCHoklch(36.49% 0.124 276.6)
XYZxyz(6.1674, 4.5019, 20.2786)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30337E #7E7B30
analogous
#305A7E #30337E #54307E
triadic
#30337E #7E3033 #337E30
tetradic
#30337E #7E305A #7E7B30 #307E54
square
#30337E #7E305A #7E7B30 #307E54
split-complementary
#30337E #7E5430 #5A7E30
monochromatic
#0E0F25 #1F2152 #30337E #4145AA #6468C4

Accessibility & contrast

On white

11.05
#30337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#30337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30337E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30337E#FFFFFF#000000##FFFFFF
##30337E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #30337e;
/* rgb */ color: rgb(48, 51, 126);
/* oklch */ color: oklch(36.5% 0.124 276.6);
Tailwind
colors: {
  custom: {
    50: '#716aa4',
    500: '#30337e',
    950: '#000000',
  },
}
SCSS
$custom: #30337e;
$custom-light: #716aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#30337e",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 237.692,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36494,
    "c": 0.12449,
    "h": 276.6
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#30337E
secondary
#ABA85F
accent
#D053D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30337E

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

Preview Lab → · Contrast checker → · Palette generator →

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