#30338F#30338F

#30338F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.149 H 275.3°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#30338F
RGBrgb(48, 51, 143)
HSLhsl(238, 50%, 37%)
HSVhsv(238, 66%, 56%)
CMYKcmyk(66.4%, 64.3%, 0%, 43.9%)
CIE-LABlab(26.67, 29.17, -51.38)
CIE-LCHlch(26.67, 59.08, 299.58°)
OKLaboklab(37.97% 0.0137 -0.1481)
OKLCHoklch(37.97% 0.149 275.3)
XYZxyz(7.3590, 4.9786, 26.5544)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30338F #8F8C30
analogous
#30638F #30338F #5C308F
triadic
#30338F #8F3033 #338F30
tetradic
#30338F #8F3063 #8F8C30 #308F5C
square
#30338F #8F3063 #8F8C30 #308F5C
split-complementary
#30338F #8F5C30 #638F30
monochromatic
#111233 #212361 #30338F #3F43BD #6C6FCE

Accessibility & contrast

On white

10.52
#30338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#30338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30338F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30338F#FFFFFF#000000##FFFFFF
##30338F1.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)
#004392
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #30338f;
/* rgb */ color: rgb(48, 51, 143);
/* oklch */ color: oklch(38.0% 0.149 275.3);
Tailwind
colors: {
  custom: {
    50: '#746bb1',
    500: '#30338f',
    950: '#000000',
  },
}
SCSS
$custom: #30338f;
$custom-light: #746bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#30338f",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 238.105,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37974,
    "c": 0.14874,
    "h": 275.3
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#30338F
secondary
#B5B266
accent
#D54FD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #30338F

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

Preview Lab → · Contrast checker → · Palette generator →

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