#333178#333178

#333178 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.118 H 279.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#333178
RGBrgb(51, 49, 120)
HSLhsl(242, 42%, 33%)
HSVhsv(242, 59%, 47%)
CMYKcmyk(57.5%, 59.2%, 0%, 52.9%)
CIE-LABlab(24.50, 22.87, -40.50)
CIE-LCHlch(24.50, 46.51, 299.45°)
OKLaboklab(35.84% 0.0203 -0.116)
OKLCHoklch(35.84% 0.118 279.9)
XYZxyz(5.8527, 4.2561, 18.2788)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333178 #767831
analogous
#315278 #333178 #563178
triadic
#333178 #783331 #317833
tetradic
#333178 #783152 #767831 #317856
square
#333178 #783152 #767831 #317856
split-complementary
#333178 #785631 #527831
monochromatic
#0E0E21 #211F4D #333178 #4543A3 #6664C0

Accessibility & contrast

On white

11.34
#333178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#333178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333178
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333178#FFFFFF#000000##FFFFFF
##3331781.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#11424F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #333178;
/* rgb */ color: rgb(51, 49, 120);
/* oklch */ color: oklch(35.8% 0.118 279.9);
Tailwind
colors: {
  custom: {
    50: '#71699f',
    500: '#333178',
    950: '#000000',
  },
}
SCSS
$custom: #333178;
$custom-light: #71699f;
$custom-dark: #000000;
JSON
{
  "hex": "#333178",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 241.69,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35839,
    "c": 0.11781,
    "h": 279.9
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#333178
secondary
#A5A75E
accent
#D256CE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #333178

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

Preview Lab → · Contrast checker → · Palette generator →

#333178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva