#30397B#30397B

#30397B is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.112 H 273.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#30397B
RGBrgb(48, 57, 123)
HSLhsl(233, 44%, 34%)
HSVhsv(233, 61%, 48%)
CMYKcmyk(61%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.69, 17.87, -38.87)
CIE-LCHlch(26.69, 42.79, 294.69°)
OKLaboklab(37.49% 0.0076 -0.1113)
OKLCHoklch(37.49% 0.112 273.9)
XYZxyz(6.2560, 4.9842, 19.3674)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30397B #7B7230
analogous
#305E7B #30397B #4C307B
triadic
#30397B #7B3039 #397B30
tetradic
#30397B #7B305E #7B7230 #307B4C
square
#30397B #7B305E #7B7230 #307B4C
split-complementary
#30397B #7B4C30 #5E7B30
monochromatic
#0E1023 #1F254F #30397B #414DA7 #636FC2

Accessibility & contrast

On white

10.52
#30397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#30397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30397B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30397B#FFFFFF#000000##FFFFFF
##30397B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427D
Deuteranopia (green-blind)
#033C7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #30397b;
/* rgb */ color: rgb(48, 57, 123);
/* oklch */ color: oklch(37.5% 0.112 273.9);
Tailwind
colors: {
  custom: {
    50: '#706fa2',
    500: '#30397b',
    950: '#000000',
  },
}
SCSS
$custom: #30397b;
$custom-light: #706fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#30397b",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 232.8,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.11153,
    "h": 273.9
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#30397B
secondary
#A9A05D
accent
#C454D4
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #30397B

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

Preview Lab → · Contrast checker → · Palette generator →

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