#333F9C#333F9C

#333F9C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.151 H 272.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#333F9C
RGBrgb(51, 63, 156)
HSLhsl(233, 51%, 41%)
HSVhsv(233, 67%, 61%)
CMYKcmyk(67.3%, 59.6%, 0%, 38.8%)
CIE-LABlab(31.02, 26.43, -52.25)
CIE-LCHlch(31.02, 58.56, 296.83°)
OKLaboklab(41.57% 0.0065 -0.1505)
OKLCHoklch(41.57% 0.151 272.5)
XYZxyz(9.1415, 6.6583, 32.2495)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F9C #9C9033
analogous
#33739C #333F9C #5B339C
triadic
#333F9C #9C333F #3F9C33
tetradic
#333F9C #9C3373 #9C9033 #339C5B
square
#333F9C #9C3373 #9C9033 #339C5B
split-complementary
#333F9C #9C5B33 #739C33
monochromatic
#151A40 #242C6E #333F9C #4957C3 #7781D3

Accessibility & contrast

On white

9.01
#333F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#333F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333F9C
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F9C#FFFFFF#000000##FFFFFF
##333F9C1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #333f9c;
/* rgb */ color: rgb(51, 63, 156);
/* oklch */ color: oklch(41.6% 0.151 272.5);
Tailwind
colors: {
  custom: {
    50: '#7874ba',
    500: '#333f9c',
    950: '#000000',
  },
}
SCSS
$custom: #333f9c;
$custom-light: #7874ba;
$custom-dark: #000000;
JSON
{
  "hex": "#333f9c",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 233.143,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41568,
    "c": 0.15062,
    "h": 272.5
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#333F9C
secondary
#BBB270
accent
#CA4EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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