#333AAF#333AAF

#333AAF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.182 H 273.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#333AAF
RGBrgb(51, 58, 175)
HSLhsl(237, 55%, 44%)
HSVhsv(237, 71%, 69%)
CMYKcmyk(70.9%, 66.9%, 0%, 31.4%)
CIE-LABlab(31.40, 36.45, -63.05)
CIE-LCHlch(31.40, 72.83, 300.03°)
OKLaboklab(42.36% 0.0094 -0.1822)
OKLCHoklch(42.36% 0.182 273)
XYZxyz(10.6136, 6.8240, 41.3070)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AAF #AFA833
analogous
#3378AF #333AAF #6A33AF
triadic
#333AAF #AF333A #3AAF33
tetradic
#333AAF #AF3378 #AFA833 #33AF6A
square
#333AAF #AF3378 #AFA833 #33AF6A
split-complementary
#333AAF #AF6A33 #78AF33
monochromatic
#171B50 #252A80 #333AAF #5259CD #8287DB

Accessibility & contrast

On white

8.88
#333AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333AAF
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AAF#FFFFFF#000000##FFFFFF
##333AAF1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333aaf;
/* rgb */ color: rgb(51, 58, 175);
/* oklch */ color: oklch(42.4% 0.182 273.0);
Tailwind
colors: {
  custom: {
    50: '#7c70c8',
    500: '#333aaf',
    950: '#000000',
  },
}
SCSS
$custom: #333aaf;
$custom-light: #7c70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#333aaf",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 236.613,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42355,
    "c": 0.18244,
    "h": 273
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#333AAF
secondary
#C4C07A
accent
#D64ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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