#333FA7#333FA7

#333FA7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.166 H 272.2°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#333FA7
RGBrgb(51, 63, 167)
HSLhsl(234, 53%, 43%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(69.5%, 62.3%, 0%, 34.5%)
CIE-LABlab(31.92, 30.41, -57.43)
CIE-LCHlch(31.92, 64.98, 297.91°)
OKLaboklab(42.52% 0.0063 -0.1657)
OKLCHoklch(42.52% 0.166 272.2)
XYZxyz(10.1155, 7.0479, 37.3790)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA7 #A79B33
analogous
#3379A7 #333FA7 #6133A7
triadic
#333FA7 #A7333F #3FA733
tetradic
#333FA7 #A73379 #A79B33 #33A761
square
#333FA7 #A73379 #A79B33 #33A761
split-complementary
#333FA7 #A76133 #79A733
monochromatic
#161C49 #252D78 #333FA7 #4E5BC9 #7D86D7

Accessibility & contrast

On white

8.71
#333FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#333FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FA7
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA7#FFFFFF#000000##FFFFFF
##333FA71.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333fa7;
/* rgb */ color: rgb(51, 63, 167);
/* oklch */ color: oklch(42.5% 0.166 272.2);
Tailwind
colors: {
  custom: {
    50: '#7a74c2',
    500: '#333fa7',
    950: '#000000',
  },
}
SCSS
$custom: #333fa7;
$custom-light: #7a74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa7",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 233.793,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42515,
    "c": 0.16579,
    "h": 272.2
  },
  "luminance": 0.07049
}

Semantic roles & 50–950 ramp

primary
#333FA7
secondary
#C0B876
accent
#CE4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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