#333DA2#333DA2

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

Color values

HEX#333DA2
RGBrgb(51, 61, 162)
HSLhsl(235, 52%, 42%)
HSVhsv(235, 69%, 64%)
CMYKcmyk(68.5%, 62.3%, 0%, 36.5%)
CIE-LABlab(30.99, 29.91, -55.92)
CIE-LCHlch(30.99, 63.42, 298.14°)
OKLaboklab(41.71% 0.008 -0.1613)
OKLCHoklch(41.71% 0.161 272.9)
XYZxyz(9.5534, 6.6490, 34.9553)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333DA2 #A29833
analogous
#3375A2 #333DA2 #6133A2
triadic
#333DA2 #A2333D #3DA233
tetradic
#333DA2 #A23375 #A29833 #33A261
square
#333DA2 #A23375 #A29833 #33A261
split-complementary
#333DA2 #A26133 #75A233
monochromatic
#161A45 #242B73 #333DA2 #4C57C7 #7A82D5

Accessibility & contrast

On white

9.01
#333DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#333DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333DA2
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333DA2#FFFFFF#000000##FFFFFF
##333DA21.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #333da2;
/* rgb */ color: rgb(51, 61, 162);
/* oklch */ color: oklch(41.7% 0.161 272.9);
Tailwind
colors: {
  custom: {
    50: '#7972be',
    500: '#333da2',
    950: '#000000',
  },
}
SCSS
$custom: #333da2;
$custom-light: #7972be;
$custom-dark: #000000;
JSON
{
  "hex": "#333da2",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 234.595,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41705,
    "c": 0.16147,
    "h": 272.9
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#333DA2
secondary
#BEB773
accent
#CF4CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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