#333BA7#333BA7

#333BA7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.171 H 273.1°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#333BA7
RGBrgb(51, 59, 167)
HSLhsl(236, 53%, 43%)
HSVhsv(236, 69%, 65%)
CMYKcmyk(69.5%, 64.7%, 0%, 34.5%)
CIE-LABlab(30.93, 32.99, -59.04)
CIE-LCHlch(30.93, 67.64, 299.20°)
OKLaboklab(41.79% 0.0093 -0.1704)
OKLCHoklch(41.79% 0.171 273.1)
XYZxyz(9.9019, 6.6208, 37.3078)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BA7 #A79F33
analogous
#3375A7 #333BA7 #6533A7
triadic
#333BA7 #A7333B #3BA733
tetradic
#333BA7 #A73375 #A79F33 #33A765
square
#333BA7 #A73375 #A79F33 #33A765
split-complementary
#333BA7 #A76533 #75A733
monochromatic
#161A49 #252A78 #333BA7 #4E57C9 #7D83D7

Accessibility & contrast

On white

9.03
#333BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333BA7
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BA7#FFFFFF#000000##FFFFFF
##333BA71.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333ba7;
/* rgb */ color: rgb(51, 59, 167);
/* oklch */ color: oklch(41.8% 0.171 273.1);
Tailwind
colors: {
  custom: {
    50: '#7a71c2',
    500: '#333ba7',
    950: '#000000',
  },
}
SCSS
$custom: #333ba7;
$custom-light: #7a71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#333ba7",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 235.862,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41789,
    "c": 0.1707,
    "h": 273.1
  },
  "luminance": 0.06622
}

Semantic roles & 50–950 ramp

primary
#333BA7
secondary
#C0BB76
accent
#D34BDD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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