#333166#333166

#333166 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.090 H 282.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#333166
RGBrgb(51, 49, 102)
HSLhsl(242, 35%, 30%)
HSVhsv(242, 52%, 40%)
CMYKcmyk(50%, 52%, 0%, 60%)
CIE-LABlab(23.20, 16.62, -31.04)
CIE-LCHlch(23.20, 35.21, 298.18°)
OKLaboklab(34.45% 0.0192 -0.0882)
OKLCHoklch(34.45% 0.09 282.3)
XYZxyz(4.8611, 3.8595, 13.0566)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333166 #646631
analogous
#314A66 #333166 #4E3166
triadic
#333166 #663331 #316633
tetradic
#333166 #66314A #646631 #31664E
square
#333166 #66314A #646631 #31664E
split-complementary
#333166 #664E31 #4A6631
monochromatic
#0A0A15 #1E1D3D #333166 #48458F #625FB2

Accessibility & contrast

On white

11.85
#333166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#333166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333166
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333166#FFFFFF#000000##FFFFFF
##3331661.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3968
Deuteranopia (green-blind)
#173565
Tritanopia (blue-blind)
#213C46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #333166;
/* rgb */ color: rgb(51, 49, 102);
/* oklch */ color: oklch(34.5% 0.090 282.3);
Tailwind
colors: {
  custom: {
    50: '#6e6992',
    500: '#333166',
    950: '#000000',
  },
}
SCSS
$custom: #333166;
$custom-light: #6e6992;
$custom-dark: #000000;
JSON
{
  "hex": "#333166",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 242.264,
    "s": 35.099,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34452,
    "c": 0.09028,
    "h": 282.3
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#333166
secondary
#95975C
accent
#CB5DC7
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #333166

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

Preview Lab → · Contrast checker → · Palette generator →

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