#333979#333979

#333979 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.6% C 0.108 H 275.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#333979
RGBrgb(51, 57, 121)
HSLhsl(235, 41%, 34%)
HSVhsv(235, 58%, 47%)
CMYKcmyk(57.9%, 52.9%, 0%, 52.5%)
CIE-LABlab(26.76, 17.79, -37.48)
CIE-LCHlch(26.76, 41.49, 295.39°)
OKLaboklab(37.55% 0.0111 -0.1071)
OKLCHoklch(37.55% 0.108 275.9)
XYZxyz(6.2785, 5.0101, 18.7217)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333979 #797333
analogous
#335C79 #333979 #503379
triadic
#333979 #793339 #397933
tetradic
#333979 #79335C #797333 #337950
square
#333979 #79335C #797333 #337950
split-complementary
#333979 #795033 #5C7933
monochromatic
#0F1023 #21254E #333979 #454DA4 #676FBF

Accessibility & contrast

On white

10.49
#333979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#333979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333979
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333979#FFFFFF#000000##FFFFFF
##3339791.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427B
Deuteranopia (green-blind)
#0C3C78
Tritanopia (blue-blind)
#0E4753
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #333979;
/* rgb */ color: rgb(51, 57, 121);
/* oklch */ color: oklch(37.6% 0.108 275.9);
Tailwind
colors: {
  custom: {
    50: '#716fa0',
    500: '#333979',
    950: '#000000',
  },
}
SCSS
$custom: #333979;
$custom-light: #716fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#333979",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 121
  },
  "hsl": {
    "h": 234.857,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37554,
    "c": 0.10767,
    "h": 275.9
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#333979
secondary
#A7A161
accent
#C657D1
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #333979

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

Preview Lab → · Contrast checker → · Palette generator →

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