#30397E#30397E

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

Color values

HEX#30397E
RGBrgb(48, 57, 126)
HSLhsl(233, 45%, 34%)
HSVhsv(233, 62%, 49%)
CMYKcmyk(61.9%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.91, 18.97, -40.41)
CIE-LCHlch(26.91, 44.64, 295.14°)
OKLaboklab(37.72% 0.0079 -0.1158)
OKLCHoklch(37.72% 0.116 273.9)
XYZxyz(6.4467, 5.0605, 20.3717)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30397E #7E7530
analogous
#30607E #30397E #4E307E
triadic
#30397E #7E3039 #397E30
tetradic
#30397E #7E3060 #7E7530 #307E4E
square
#30397E #7E3060 #7E7530 #307E4E
split-complementary
#30397E #7E4E30 #607E30
monochromatic
#0E1125 #1F2552 #30397E #414DAA #646FC4

Accessibility & contrast

On white

10.44
#30397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#30397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30397E
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30397E#FFFFFF#000000##FFFFFF
##30397E1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4380
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #30397e;
/* rgb */ color: rgb(48, 57, 126);
/* oklch */ color: oklch(37.7% 0.116 273.9);
Tailwind
colors: {
  custom: {
    50: '#706fa4',
    500: '#30397e',
    950: '#000000',
  },
}
SCSS
$custom: #30397e;
$custom-light: #706fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#30397e",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 233.077,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3772,
    "c": 0.11607,
    "h": 273.9
  },
  "luminance": 0.05061
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30397E

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

Preview Lab → · Contrast checker → · Palette generator →

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