#333D9A#333D9A

#333D9A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.150 H 273.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#333D9A
RGBrgb(51, 61, 154)
HSLhsl(234, 50%, 40%)
HSVhsv(234, 67%, 60%)
CMYKcmyk(66.9%, 60.4%, 0%, 39.6%)
CIE-LABlab(30.34, 27.03, -52.15)
CIE-LCHlch(30.34, 58.73, 297.40°)
OKLaboklab(41.01% 0.0082 -0.1502)
OKLCHoklch(41.01% 0.15 273.1)
XYZxyz(8.8648, 6.3736, 31.3286)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333D9A #9A9033
analogous
#33709A #333D9A #5D339A
triadic
#333D9A #9A333D #3D9A33
tetradic
#333D9A #9A3370 #9A9033 #339A5D
square
#333D9A #9A3370 #9A9033 #339A5D
split-complementary
#333D9A #9A5D33 #709A33
monochromatic
#15193E #242B6C #333D9A #4854C2 #767FD2

Accessibility & contrast

On white

9.23
#333D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#333D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333D9A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333D9A#FFFFFF#000000##FFFFFF
##333D9A1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #333d9a;
/* rgb */ color: rgb(51, 61, 154);
/* oklch */ color: oklch(41.0% 0.150 273.1);
Tailwind
colors: {
  custom: {
    50: '#7772b9',
    500: '#333d9a',
    950: '#000000',
  },
}
SCSS
$custom: #333d9a;
$custom-light: #7772b9;
$custom-dark: #000000;
JSON
{
  "hex": "#333d9a",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 154
  },
  "hsl": {
    "h": 234.175,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41013,
    "c": 0.1504,
    "h": 273.1
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#333D9A
secondary
#BAB36F
accent
#CC4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #333D9A

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

Preview Lab → · Contrast checker → · Palette generator →

#333D9A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva