#333BA6#333BA6

#333BA6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.169 H 273.2°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#333BA6
RGBrgb(51, 59, 166)
HSLhsl(236, 53%, 43%)
HSVhsv(236, 69%, 65%)
CMYKcmyk(69.3%, 64.5%, 0%, 34.9%)
CIE-LABlab(30.84, 32.64, -58.58)
CIE-LCHlch(30.84, 67.06, 299.12°)
OKLaboklab(41.7% 0.0094 -0.1691)
OKLCHoklch(41.7% 0.169 273.2)
XYZxyz(9.8098, 6.5840, 36.8229)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BA6 #A69E33
analogous
#3375A6 #333BA6 #6433A6
triadic
#333BA6 #A6333B #3BA633
tetradic
#333BA6 #A63375 #A69E33 #33A664
square
#333BA6 #A63375 #A69E33 #33A664
split-complementary
#333BA6 #A66433 #75A633
monochromatic
#161A48 #252A77 #333BA6 #4E56C9 #7C83D7

Accessibility & contrast

On white

9.06
#333BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#333BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BA6
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BA6#FFFFFF#000000##FFFFFF
##333BA61.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333ba6;
/* rgb */ color: rgb(51, 59, 166);
/* oklch */ color: oklch(41.7% 0.169 273.2);
Tailwind
colors: {
  custom: {
    50: '#7a71c1',
    500: '#333ba6',
    950: '#000000',
  },
}
SCSS
$custom: #333ba6;
$custom-light: #7a71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333ba6",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 235.826,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41698,
    "c": 0.16935,
    "h": 273.2
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#333BA6
secondary
#C0BB75
accent
#D24BDC
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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