#30338B#30338B

#30338B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.143 H 275.6°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#30338B
RGBrgb(48, 51, 139)
HSLhsl(238, 49%, 37%)
HSVhsv(238, 65%, 55%)
CMYKcmyk(65.5%, 63.3%, 0%, 45.5%)
CIE-LABlab(26.33, 27.73, -49.46)
CIE-LCHlch(26.33, 56.71, 299.28°)
OKLaboklab(37.62% 0.014 -0.1425)
OKLCHoklch(37.62% 0.143 275.6)
XYZxyz(7.0614, 4.8595, 24.9869)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30338B #8B8830
analogous
#30618B #30338B #5B308B
triadic
#30338B #8B3033 #338B30
tetradic
#30338B #8B3061 #8B8830 #308B5B
square
#30338B #8B3061 #8B8830 #308B5B
split-complementary
#30338B #8B5B30 #618B30
monochromatic
#111230 #20225E #30338B #4044B8 #6A6DCC

Accessibility & contrast

On white

10.65
#30338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#30338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30338B
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30338B#FFFFFF#000000##FFFFFF
##30338B1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #30338b;
/* rgb */ color: rgb(48, 51, 139);
/* oklch */ color: oklch(37.6% 0.143 275.6);
Tailwind
colors: {
  custom: {
    50: '#746bae',
    500: '#30338b',
    950: '#000000',
  },
}
SCSS
$custom: #30338b;
$custom-light: #746bae;
$custom-dark: #000000;
JSON
{
  "hex": "#30338b",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 238.022,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37616,
    "c": 0.14315,
    "h": 275.6
  },
  "luminance": 0.0486
}

Semantic roles & 50–950 ramp

primary
#30338B
secondary
#B3B064
accent
#D450D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #30338B

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

Preview Lab → · Contrast checker → · Palette generator →

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