#333CA6#333CA6

#333CA6 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.168 H 272.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#333CA6
RGBrgb(51, 60, 166)
HSLhsl(235, 53%, 43%)
HSVhsv(235, 69%, 65%)
CMYKcmyk(69.3%, 63.9%, 0%, 34.9%)
CIE-LABlab(31.09, 32.00, -58.18)
CIE-LCHlch(31.09, 66.40, 298.81°)
OKLaboklab(41.88% 0.0087 -0.1679)
OKLCHoklch(41.88% 0.168 272.9)
XYZxyz(9.8617, 6.6878, 36.8402)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333CA6 #A69D33
analogous
#3376A6 #333CA6 #6333A6
triadic
#333CA6 #A6333C #3CA633
tetradic
#333CA6 #A63376 #A69D33 #33A663
square
#333CA6 #A63376 #A69D33 #33A663
split-complementary
#333CA6 #A66333 #76A633
monochromatic
#161A48 #252B77 #333CA6 #4E57C9 #7C84D7

Accessibility & contrast

On white

8.98
#333CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#333CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333CA6
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333CA6#FFFFFF#000000##FFFFFF
##333CA61.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #333ca6;
/* rgb */ color: rgb(51, 60, 166);
/* oklch */ color: oklch(41.9% 0.168 272.9);
Tailwind
colors: {
  custom: {
    50: '#7a72c1',
    500: '#333ca6',
    950: '#000000',
  },
}
SCSS
$custom: #333ca6;
$custom-light: #7a72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333ca6",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 235.304,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41878,
    "c": 0.16813,
    "h": 272.9
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#333CA6
secondary
#C0BA75
accent
#D14BDC
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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