#33339B#33339B

#33339B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.164 H 275.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#33339B
RGBrgb(51, 51, 155)
HSLhsl(240, 50%, 40%)
HSVhsv(240, 67%, 61%)
CMYKcmyk(67.1%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.95, 33.85, -56.66)
CIE-LCHlch(27.95, 66.00, 300.86°)
OKLaboklab(39.29% 0.0164 -0.1635)
OKLCHoklch(39.29% 0.164 275.7)
XYZxyz(8.4635, 5.4373, 31.6075)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33339B #9B9B33
analogous
#33679B #33339B #67339B
triadic
#33339B #9B3333 #339B33
tetradic
#33339B #9B3367 #9B9B33 #339B67
square
#33339B #9B3367 #9B9B33 #339B67
split-complementary
#33339B #9B6733 #679B33
monochromatic
#15153F #24246D #33339B #4848C3 #7676D2

Accessibility & contrast

On white

10.06
#33339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#33339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33339B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33339B#FFFFFF#000000##FFFFFF
##33339B1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #33339b;
/* rgb */ color: rgb(51, 51, 155);
/* oklch */ color: oklch(39.3% 0.164 275.7);
Tailwind
colors: {
  custom: {
    50: '#786bb9',
    500: '#33339b',
    950: '#000000',
  },
}
SCSS
$custom: #33339b;
$custom-light: #786bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#33339b",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39286,
    "c": 0.16431,
    "h": 275.7
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#33339B
secondary
#BABA6F
accent
#DA4EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #33339B

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

Preview Lab → · Contrast checker → · Palette generator →

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