#333F9E#333F9E

#333F9E is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.153 H 272.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#333F9E
RGBrgb(51, 63, 158)
HSLhsl(233, 51%, 41%)
HSVhsv(233, 68%, 62%)
CMYKcmyk(67.7%, 60.1%, 0%, 38%)
CIE-LABlab(31.18, 27.16, -53.21)
CIE-LCHlch(31.18, 59.74, 297.04°)
OKLaboklab(41.74% 0.0065 -0.1533)
OKLCHoklch(41.74% 0.153 272.4)
XYZxyz(9.3122, 6.7266, 33.1487)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F9E #9E9233
analogous
#33749E #333F9E #5C339E
triadic
#333F9E #9E333F #3F9E33
tetradic
#333F9E #9E3374 #9E9233 #339E5C
square
#333F9E #9E3374 #9E9233 #339E5C
split-complementary
#333F9E #9E5C33 #749E33
monochromatic
#151A41 #242D70 #333F9E #4A57C4 #7882D3

Accessibility & contrast

On white

8.95
#333F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#333F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333F9E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F9E#FFFFFF#000000##FFFFFF
##333F9E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #333f9e;
/* rgb */ color: rgb(51, 63, 158);
/* oklch */ color: oklch(41.7% 0.153 272.4);
Tailwind
colors: {
  custom: {
    50: '#7874bb',
    500: '#333f9e',
    950: '#000000',
  },
}
SCSS
$custom: #333f9e;
$custom-light: #7874bb;
$custom-dark: #000000;
JSON
{
  "hex": "#333f9e",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 233.271,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41737,
    "c": 0.15342,
    "h": 272.4
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#333F9E
secondary
#BCB371
accent
#CB4DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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