#333DA7#333DA7

#333DA7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.168 H 272.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#333DA7
RGBrgb(51, 61, 167)
HSLhsl(235, 53%, 43%)
HSVhsv(235, 69%, 65%)
CMYKcmyk(69.5%, 63.5%, 0%, 34.5%)
CIE-LABlab(31.42, 31.71, -58.24)
CIE-LCHlch(31.42, 66.31, 298.57°)
OKLaboklab(42.15% 0.0078 -0.1681)
OKLCHoklch(42.15% 0.168 272.7)
XYZxyz(10.0067, 6.8304, 37.3428)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333DA7 #A79D33
analogous
#3377A7 #333DA7 #6333A7
triadic
#333DA7 #A7333D #3DA733
tetradic
#333DA7 #A73377 #A79D33 #33A763
square
#333DA7 #A73377 #A79D33 #33A763
split-complementary
#333DA7 #A76333 #77A733
monochromatic
#161B49 #252C78 #333DA7 #4E59C9 #7D85D7

Accessibility & contrast

On white

8.87
#333DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#333DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333DA7
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333DA7#FFFFFF#000000##FFFFFF
##333DA71.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333da7;
/* rgb */ color: rgb(51, 61, 167);
/* oklch */ color: oklch(42.1% 0.168 272.7);
Tailwind
colors: {
  custom: {
    50: '#7a72c2',
    500: '#333da7',
    950: '#000000',
  },
}
SCSS
$custom: #333da7;
$custom-light: #7a72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#333da7",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 234.828,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42149,
    "c": 0.16825,
    "h": 272.7
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#333DA7
secondary
#C0BA76
accent
#D04BDD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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