#333FA8#333FA8

#333FA8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.167 H 272.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#333FA8
RGBrgb(51, 63, 168)
HSLhsl(234, 53%, 43%)
HSVhsv(234, 70%, 66%)
CMYKcmyk(69.6%, 62.5%, 0%, 34.1%)
CIE-LABlab(32.00, 30.78, -57.89)
CIE-LCHlch(32.00, 65.56, 298.00°)
OKLaboklab(42.6% 0.0063 -0.167)
OKLCHoklch(42.6% 0.167 272.1)
XYZxyz(10.2083, 7.0850, 37.8678)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA8 #A89C33
analogous
#3379A8 #333FA8 #6133A8
triadic
#333FA8 #A8333F #3FA833
tetradic
#333FA8 #A83379 #A89C33 #33A861
square
#333FA8 #A83379 #A89C33 #33A861
split-complementary
#333FA8 #A86133 #79A833
monochromatic
#161C4A #252D79 #333FA8 #4F5BC9 #7E87D8

Accessibility & contrast

On white

8.69
#333FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#333FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FA8
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA8#FFFFFF#000000##FFFFFF
##333FA81.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333fa8;
/* rgb */ color: rgb(51, 63, 168);
/* oklch */ color: oklch(42.6% 0.167 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a74c3',
    500: '#333fa8',
    950: '#000000',
  },
}
SCSS
$custom: #333fa8;
$custom-light: #7a74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa8",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 233.846,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42603,
    "c": 0.16715,
    "h": 272.1
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#333FA8
secondary
#C1B976
accent
#CE4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #333FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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