#30339B#30339B

#30339B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.165 H 274.4°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#30339B
RGBrgb(48, 51, 155)
HSLhsl(238, 53%, 40%)
HSVhsv(238, 69%, 61%)
CMYKcmyk(69%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.74, 33.44, -57.00)
CIE-LCHlch(27.74, 66.08, 300.40°)
OKLaboklab(39.08% 0.0127 -0.1646)
OKLCHoklch(39.08% 0.165 274.4)
XYZxyz(8.3172, 5.3618, 31.6006)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30339B #9B9830
analogous
#30689B #30339B #63309B
triadic
#30339B #9B3033 #339B30
tetradic
#30339B #9B3068 #9B9830 #309B63
square
#30339B #9B3068 #9B9830 #309B63
split-complementary
#30339B #9B6330 #689B30
monochromatic
#13143E #22246C #30339B #4347C5 #7275D3

Accessibility & contrast

On white

10.13
#30339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#30339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30339B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30339B#FFFFFF#000000##FFFFFF
##30339B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #30339b;
/* rgb */ color: rgb(48, 51, 155);
/* oklch */ color: oklch(39.1% 0.165 274.4);
Tailwind
colors: {
  custom: {
    50: '#776bb9',
    500: '#30339b',
    950: '#000000',
  },
}
SCSS
$custom: #30339b;
$custom-light: #776bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#30339b",
  "rgb": {
    "r": 48,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 238.318,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.16506,
    "h": 274.4
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#30339B
secondary
#BBB96C
accent
#D84CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #30339B

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

Preview Lab → · Contrast checker → · Palette generator →

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