#333F9F#333F9F

#333F9F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.155 H 272.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#333F9F
RGBrgb(51, 63, 159)
HSLhsl(233, 51%, 41%)
HSVhsv(233, 68%, 62%)
CMYKcmyk(67.9%, 60.4%, 0%, 37.6%)
CIE-LABlab(31.26, 27.52, -53.68)
CIE-LCHlch(31.26, 60.32, 297.14°)
OKLaboklab(41.82% 0.0065 -0.1547)
OKLCHoklch(41.82% 0.155 272.4)
XYZxyz(9.3987, 6.7612, 33.6039)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F9F #9F9333
analogous
#33759F #333F9F #5D339F
triadic
#333F9F #9F333F #3F9F33
tetradic
#333F9F #9F3375 #9F9333 #339F5D
square
#333F9F #9F3375 #9F9333 #339F5D
split-complementary
#333F9F #9F5D33 #759F33
monochromatic
#151A42 #242D71 #333F9F #4A58C5 #7983D4

Accessibility & contrast

On white

8.93
#333F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333F9F
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F9F#FFFFFF#000000##FFFFFF
##333F9F1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333f9f;
/* rgb */ color: rgb(51, 63, 159);
/* oklch */ color: oklch(41.8% 0.155 272.4);
Tailwind
colors: {
  custom: {
    50: '#7874bc',
    500: '#333f9f',
    950: '#000000',
  },
}
SCSS
$custom: #333f9f;
$custom-light: #7874bc;
$custom-dark: #000000;
JSON
{
  "hex": "#333f9f",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 233.333,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41823,
    "c": 0.1548,
    "h": 272.4
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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