#30337D#30337D

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

Color values

HEX#30337D
RGBrgb(48, 51, 125)
HSLhsl(238, 45%, 34%)
HSVhsv(238, 62%, 49%)
CMYKcmyk(61.6%, 59.2%, 0%, 51%)
CIE-LABlab(25.19, 22.69, -42.56)
CIE-LCHlch(25.19, 48.23, 298.06°)
OKLaboklab(36.41% 0.0142 -0.1222)
OKLCHoklch(36.41% 0.123 276.6)
XYZxyz(6.1032, 4.4762, 19.9404)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30337D #7D7A30
analogous
#305A7D #30337D #54307D
triadic
#30337D #7D3033 #337D30
tetradic
#30337D #7D305A #7D7A30 #307D54
square
#30337D #7D305A #7D7A30 #307D54
split-complementary
#30337D #7D5430 #5A7D30
monochromatic
#0E0F25 #1F2151 #30337D #4145A9 #6468C3

Accessibility & contrast

On white

11.08
#30337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30337D
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30337D#FFFFFF#000000##FFFFFF
##30337D1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #30337d;
/* rgb */ color: rgb(48, 51, 125);
/* oklch */ color: oklch(36.4% 0.123 276.6);
Tailwind
colors: {
  custom: {
    50: '#716aa3',
    500: '#30337d',
    950: '#000000',
  },
}
SCSS
$custom: #30337d;
$custom-light: #716aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#30337d",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 237.662,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36411,
    "c": 0.12302,
    "h": 276.6
  },
  "luminance": 0.04477
}

Semantic roles & 50–950 ramp

primary
#30337D
secondary
#ABA85E
accent
#CF54D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30337D

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

Preview Lab → · Contrast checker → · Palette generator →

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