#333C8A#333C8A

#333C8A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.129 H 274.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#333C8A
RGBrgb(51, 60, 138)
HSLhsl(234, 46%, 37%)
HSVhsv(234, 63%, 54%)
CMYKcmyk(63%, 56.5%, 0%, 45.9%)
CIE-LABlab(28.82, 21.89, -44.78)
CIE-LCHlch(28.82, 49.85, 296.05°)
OKLaboklab(39.5% 0.0089 -0.1285)
OKLCHoklch(39.5% 0.129 274)
XYZxyz(7.5670, 5.7699, 24.7548)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C8A #8A8133
analogous
#33688A #333C8A #56338A
triadic
#333C8A #8A333C #3C8A33
tetradic
#333C8A #8A3368 #8A8133 #338A56
square
#333C8A #8A3368 #8A8133 #338A56
split-complementary
#333C8A #8A5633 #688A33
monochromatic
#121531 #22295D #333C8A #444FB7 #6E77C9

Accessibility & contrast

On white

9.75
#333C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#333C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C8A
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C8A#FFFFFF#000000##FFFFFF
##333C8A1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333c8a;
/* rgb */ color: rgb(51, 60, 138);
/* oklch */ color: oklch(39.5% 0.129 274.0);
Tailwind
colors: {
  custom: {
    50: '#7471ad',
    500: '#333c8a',
    950: '#000000',
  },
}
SCSS
$custom: #333c8a;
$custom-light: #7471ad;
$custom-dark: #000000;
JSON
{
  "hex": "#333c8a",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 233.793,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39495,
    "c": 0.12885,
    "h": 274
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#333C8A
secondary
#B1AA67
accent
#C852D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #333C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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