#30397F#30397F

#30397F is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.8% C 0.118 H 273.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#30397F
RGBrgb(48, 57, 127)
HSLhsl(233, 45%, 34%)
HSVhsv(233, 62%, 50%)
CMYKcmyk(62.2%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.98, 19.33, -40.92)
CIE-LCHlch(26.98, 45.26, 295.29°)
OKLaboklab(37.8% 0.0079 -0.1173)
OKLCHoklch(37.8% 0.118 273.9)
XYZxyz(6.5116, 5.0864, 20.7132)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30397F #7F7630
analogous
#30617F #30397F #4F307F
triadic
#30397F #7F3039 #397F30
tetradic
#30397F #7F3061 #7F7630 #307F4F
square
#30397F #7F3061 #7F7630 #307F4F
split-complementary
#30397F #7F4F30 #617F30
monochromatic
#0E1126 #1F2553 #30397F #414DAB #6570C5

Accessibility & contrast

On white

10.41
#30397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#30397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30397F
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30397F#FFFFFF#000000##FFFFFF
##30397F1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #30397f;
/* rgb */ color: rgb(48, 57, 127);
/* oklch */ color: oklch(37.8% 0.118 273.9);
Tailwind
colors: {
  custom: {
    50: '#716fa5',
    500: '#30397f',
    950: '#000000',
  },
}
SCSS
$custom: #30397f;
$custom-light: #716fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#30397f",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 233.165,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37799,
    "c": 0.11757,
    "h": 273.9
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#30397F
secondary
#ACA35F
accent
#C653D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #30397F

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

Preview Lab → · Contrast checker → · Palette generator →

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