#333BA2#333BA2

#333BA2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.164 H 273.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#333BA2
RGBrgb(51, 59, 162)
HSLhsl(236, 52%, 42%)
HSVhsv(236, 69%, 64%)
CMYKcmyk(68.5%, 63.6%, 0%, 36.5%)
CIE-LABlab(30.50, 31.21, -56.74)
CIE-LCHlch(30.50, 64.75, 298.82°)
OKLaboklab(41.34% 0.0096 -0.1637)
OKLCHoklch(41.34% 0.164 273.4)
XYZxyz(9.4486, 6.4395, 34.9204)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BA2 #A29A33
analogous
#3373A2 #333BA2 #6333A2
triadic
#333BA2 #A2333B #3BA233
tetradic
#333BA2 #A23373 #A29A33 #33A263
square
#333BA2 #A23373 #A29A33 #33A263
split-complementary
#333BA2 #A26333 #73A233
monochromatic
#161945 #242A73 #333BA2 #4C55C7 #7A81D5

Accessibility & contrast

On white

9.18
#333BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#333BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BA2
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BA2#FFFFFF#000000##FFFFFF
##333BA21.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333ba2;
/* rgb */ color: rgb(51, 59, 162);
/* oklch */ color: oklch(41.3% 0.164 273.4);
Tailwind
colors: {
  custom: {
    50: '#7971be',
    500: '#333ba2',
    950: '#000000',
  },
}
SCSS
$custom: #333ba2;
$custom-light: #7971be;
$custom-dark: #000000;
JSON
{
  "hex": "#333ba2",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 235.676,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41338,
    "c": 0.16396,
    "h": 273.4
  },
  "luminance": 0.0644
}

Semantic roles & 50–950 ramp

primary
#333BA2
secondary
#BEB873
accent
#D14CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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