#30337F#30337F

#30337F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.126 H 276.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#30337F
RGBrgb(48, 51, 127)
HSLhsl(238, 45%, 34%)
HSVhsv(238, 62%, 50%)
CMYKcmyk(62.2%, 59.8%, 0%, 50.2%)
CIE-LABlab(25.35, 23.41, -43.57)
CIE-LCHlch(25.35, 49.46, 298.25°)
OKLaboklab(36.58% 0.0143 -0.1251)
OKLCHoklch(36.58% 0.126 276.5)
XYZxyz(6.2323, 4.5279, 20.6201)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30337F #7F7C30
analogous
#305B7F #30337F #55307F
triadic
#30337F #7F3033 #337F30
tetradic
#30337F #7F305B #7F7C30 #307F55
square
#30337F #7F305B #7F7C30 #307F55
split-complementary
#30337F #7F5530 #5B7F30
monochromatic
#0E0F26 #1F2153 #30337F #4145AB #6568C5

Accessibility & contrast

On white

11.02
#30337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#30337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30337F
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30337F#FFFFFF#000000##FFFFFF
##30337F1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #30337f;
/* rgb */ color: rgb(48, 51, 127);
/* oklch */ color: oklch(36.6% 0.126 276.5);
Tailwind
colors: {
  custom: {
    50: '#716aa5',
    500: '#30337f',
    950: '#000000',
  },
}
SCSS
$custom: #30337f;
$custom-light: #716aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#30337f",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 237.722,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36578,
    "c": 0.12595,
    "h": 276.5
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#30337F
secondary
#ACA95F
accent
#D053D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #30337F

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

Preview Lab → · Contrast checker → · Palette generator →

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