#333FA9#333FA9

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

Color values

HEX#333FA9
RGBrgb(51, 63, 169)
HSLhsl(234, 54%, 43%)
HSVhsv(234, 70%, 66%)
CMYKcmyk(69.8%, 62.7%, 0%, 33.7%)
CIE-LABlab(32.08, 31.14, -58.35)
CIE-LCHlch(32.08, 66.14, 298.08°)
OKLaboklab(42.69% 0.0062 -0.1684)
OKLCHoklch(42.69% 0.168 272.1)
XYZxyz(10.3018, 7.1224, 38.3603)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA9 #A99D33
analogous
#337AA9 #333FA9 #6233A9
triadic
#333FA9 #A9333F #3FA933
tetradic
#333FA9 #A9337A #A99D33 #33A962
square
#333FA9 #A9337A #A99D33 #33A962
split-complementary
#333FA9 #A96233 #7AA933
monochromatic
#171C4B #252D7A #333FA9 #4F5CCA #7E87D8

Accessibility & contrast

On white

8.66
#333FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333FA9
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA9#FFFFFF#000000##FFFFFF
##333FA91.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333fa9;
/* rgb */ color: rgb(51, 63, 169);
/* oklch */ color: oklch(42.7% 0.168 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a74c3',
    500: '#333fa9',
    950: '#000000',
  },
}
SCSS
$custom: #333fa9;
$custom-light: #7a74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa9",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 169
  },
  "hsl": {
    "h": 233.898,
    "s": 53.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42692,
    "c": 0.16849,
    "h": 272.1
  },
  "luminance": 0.07123
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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