#333678#333678

#333678 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.8% C 0.111 H 277.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#333678
RGBrgb(51, 54, 120)
HSLhsl(237, 40%, 34%)
HSVhsv(237, 58%, 47%)
CMYKcmyk(57.5%, 55%, 0%, 52.9%)
CIE-LABlab(25.86, 19.48, -38.31)
CIE-LCHlch(25.86, 42.98, 296.95°)
OKLaboklab(36.85% 0.0145 -0.1096)
OKLCHoklch(36.85% 0.111 277.5)
XYZxyz(6.0735, 4.6978, 18.3524)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333678 #787533
analogous
#335878 #333678 #523378
triadic
#333678 #783336 #367833
tetradic
#333678 #783358 #787533 #337852
square
#333678 #783358 #787533 #337852
split-complementary
#333678 #785233 #587833
monochromatic
#0E0F22 #21234D #333678 #4549A3 #676BBE

Accessibility & contrast

On white

10.83
#333678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#333678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333678
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333678#FFFFFF#000000##FFFFFF
##3336781.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11407A
Deuteranopia (green-blind)
#043A77
Tritanopia (blue-blind)
#104551
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #333678;
/* rgb */ color: rgb(51, 54, 120);
/* oklch */ color: oklch(36.8% 0.111 277.5);
Tailwind
colors: {
  custom: {
    50: '#716d9f',
    500: '#333678',
    950: '#000000',
  },
}
SCSS
$custom: #333678;
$custom-light: #716d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#333678",
  "rgb": {
    "r": 51,
    "g": 54,
    "b": 120
  },
  "hsl": {
    "h": 237.391,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36849,
    "c": 0.11053,
    "h": 277.5
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#333678
secondary
#A6A360
accent
#CB58D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #333678

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

Preview Lab → · Contrast checker → · Palette generator →

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