#30337B#30337B

#30337B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.120 H 276.8°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#30337B
RGBrgb(48, 51, 123)
HSLhsl(238, 44%, 34%)
HSVhsv(238, 61%, 48%)
CMYKcmyk(61%, 58.5%, 0%, 51.8%)
CIE-LABlab(25.03, 21.97, -41.55)
CIE-LCHlch(25.03, 47.00, 297.86°)
OKLaboklab(36.25% 0.0142 -0.1192)
OKLCHoklch(36.25% 0.12 276.8)
XYZxyz(5.9768, 4.4257, 19.2743)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30337B #7B7830
analogous
#30587B #30337B #52307B
triadic
#30337B #7B3033 #337B30
tetradic
#30337B #7B3058 #7B7830 #307B52
square
#30337B #7B3058 #7B7830 #307B52
split-complementary
#30337B #7B5230 #587B30
monochromatic
#0E0E23 #1F214F #30337B #4145A7 #6367C2

Accessibility & contrast

On white

11.14
#30337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#30337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30337B
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30337B#FFFFFF#000000##FFFFFF
##30337B1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #30337b;
/* rgb */ color: rgb(48, 51, 123);
/* oklch */ color: oklch(36.2% 0.120 276.8);
Tailwind
colors: {
  custom: {
    50: '#706aa2',
    500: '#30337b',
    950: '#000000',
  },
}
SCSS
$custom: #30337b;
$custom-light: #706aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#30337b",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 237.6,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36246,
    "c": 0.12006,
    "h": 276.8
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#30337B
secondary
#A9A65D
accent
#CF54D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30337B

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

Preview Lab → · Contrast checker → · Palette generator →

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