#333FAA#333FAA

#333FAA is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.170 H 272.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#333FAA
RGBrgb(51, 63, 170)
HSLhsl(234, 54%, 43%)
HSVhsv(234, 70%, 67%)
CMYKcmyk(70%, 62.9%, 0%, 33.3%)
CIE-LABlab(32.17, 31.49, -58.81)
CIE-LCHlch(32.17, 66.71, 298.17°)
OKLaboklab(42.78% 0.0062 -0.1697)
OKLCHoklch(42.78% 0.17 272.1)
XYZxyz(10.3960, 7.1601, 38.8566)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FAA #AA9E33
analogous
#337AAA #333FAA #6333AA
triadic
#333FAA #AA333F #3FAA33
tetradic
#333FAA #AA337A #AA9E33 #33AA63
square
#333FAA #AA337A #AA9E33 #33AA63
split-complementary
#333FAA #AA6333 #7AAA33
monochromatic
#171C4C #252E7B #333FAA #505CCA #7F88D9

Accessibility & contrast

On white

8.63
#333FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#333FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FAA
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FAA#FFFFFF#000000##FFFFFF
##333FAA1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #333faa;
/* rgb */ color: rgb(51, 63, 170);
/* oklch */ color: oklch(42.8% 0.170 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b74c4',
    500: '#333faa',
    950: '#000000',
  },
}
SCSS
$custom: #333faa;
$custom-light: #7b74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#333faa",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 170
  },
  "hsl": {
    "h": 233.95,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4278,
    "c": 0.16985,
    "h": 272.1
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#333FAA
secondary
#C2BA77
accent
#CE4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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