#333F8A#333F8A

#333F8A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.125 H 272.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#333F8A
RGBrgb(51, 63, 138)
HSLhsl(232, 46%, 37%)
HSVhsv(232, 63%, 54%)
CMYKcmyk(63%, 54.3%, 0%, 45.9%)
CIE-LABlab(29.65, 19.87, -43.45)
CIE-LCHlch(29.65, 47.78, 294.57°)
OKLaboklab(40.11% 0.0058 -0.1246)
OKLCHoklch(40.11% 0.125 272.7)
XYZxyz(7.7287, 6.0932, 24.8086)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F8A #8A7E33
analogous
#336B8A #333F8A #53338A
triadic
#333F8A #8A333F #3F8A33
tetradic
#333F8A #8A336B #8A7E33 #338A53
square
#333F8A #8A336B #8A7E33 #338A53
split-complementary
#333F8A #8A5333 #6B8A33
monochromatic
#121631 #222B5D #333F8A #4453B7 #6E7BC9

Accessibility & contrast

On white

9.46
#333F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#333F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333F8A
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F8A#FFFFFF#000000##FFFFFF
##333F8A1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #333f8a;
/* rgb */ color: rgb(51, 63, 138);
/* oklch */ color: oklch(40.1% 0.125 272.7);
Tailwind
colors: {
  custom: {
    50: '#7473ad',
    500: '#333f8a',
    950: '#000000',
  },
}
SCSS
$custom: #333f8a;
$custom-light: #7473ad;
$custom-dark: #000000;
JSON
{
  "hex": "#333f8a",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 231.724,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.12473,
    "h": 272.7
  },
  "luminance": 0.06094
}

Semantic roles & 50–950 ramp

primary
#333F8A
secondary
#B1A767
accent
#C452D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #333F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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