#333FA6#333FA6

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

Color values

HEX#333FA6
RGBrgb(51, 63, 166)
HSLhsl(234, 53%, 43%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(69.3%, 62%, 0%, 34.9%)
CIE-LABlab(31.83, 30.05, -56.96)
CIE-LCHlch(31.83, 64.41, 297.82°)
OKLaboklab(42.43% 0.0063 -0.1643)
OKLCHoklch(42.43% 0.164 272.2)
XYZxyz(10.0234, 7.0110, 36.8940)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA6 #A69A33
analogous
#3379A6 #333FA6 #6033A6
triadic
#333FA6 #A6333F #3FA633
tetradic
#333FA6 #A63379 #A69A33 #33A660
square
#333FA6 #A63379 #A69A33 #33A660
split-complementary
#333FA6 #A66033 #79A633
monochromatic
#161B48 #252D77 #333FA6 #4E5AC9 #7C86D7

Accessibility & contrast

On white

8.74
#333FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#333FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FA6
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA6#FFFFFF#000000##FFFFFF
##333FA61.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333fa6;
/* rgb */ color: rgb(51, 63, 166);
/* oklch */ color: oklch(42.4% 0.164 272.2);
Tailwind
colors: {
  custom: {
    50: '#7a74c1',
    500: '#333fa6',
    950: '#000000',
  },
}
SCSS
$custom: #333fa6;
$custom-light: #7a74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa6",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 233.739,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42428,
    "c": 0.16443,
    "h": 272.2
  },
  "luminance": 0.07012
}

Semantic roles & 50–950 ramp

primary
#333FA6
secondary
#C0B875
accent
#CD4BDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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