#30338D#30338D

#30338D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.146 H 275.4°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#30338D
RGBrgb(48, 51, 141)
HSLhsl(238, 49%, 37%)
HSVhsv(238, 66%, 55%)
CMYKcmyk(66%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.50, 28.45, -50.42)
CIE-LCHlch(26.50, 57.90, 299.43°)
OKLaboklab(37.79% 0.0139 -0.1453)
OKLCHoklch(37.79% 0.146 275.4)
XYZxyz(7.2089, 4.9185, 25.7636)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30338D #8D8A30
analogous
#30618D #30338D #5C308D
triadic
#30338D #8D3033 #338D30
tetradic
#30338D #8D3061 #8D8A30 #308D5C
square
#30338D #8D3061 #8D8A30 #308D5C
split-complementary
#30338D #8D5C30 #618D30
monochromatic
#111232 #20225F #30338D #4044BB #6B6ECD

Accessibility & contrast

On white

10.59
#30338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#30338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30338D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30338D#FFFFFF#000000##FFFFFF
##30338D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #30338d;
/* rgb */ color: rgb(48, 51, 141);
/* oklch */ color: oklch(37.8% 0.146 275.4);
Tailwind
colors: {
  custom: {
    50: '#746baf',
    500: '#30338d',
    950: '#000000',
  },
}
SCSS
$custom: #30338d;
$custom-light: #746baf;
$custom-dark: #000000;
JSON
{
  "hex": "#30338d",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 238.065,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37794,
    "c": 0.14595,
    "h": 275.4
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

primary
#30338D
secondary
#B4B165
accent
#D44FD9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30338D

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

Preview Lab → · Contrast checker → · Palette generator →

#30338D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva