#333C8B#333C8B

#333C8B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.130 H 273.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#333C8B
RGBrgb(51, 60, 139)
HSLhsl(234, 46%, 37%)
HSVhsv(234, 63%, 55%)
CMYKcmyk(63.3%, 56.8%, 0%, 45.5%)
CIE-LABlab(28.90, 22.25, -45.28)
CIE-LCHlch(28.90, 50.45, 296.17°)
OKLaboklab(39.57% 0.009 -0.13)
OKLCHoklch(39.57% 0.13 273.9)
XYZxyz(7.6398, 5.7990, 25.1378)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C8B #8B8233
analogous
#33688B #333C8B #56338B
triadic
#333C8B #8B333C #3C8B33
tetradic
#333C8B #8B3368 #8B8233 #338B56
square
#333C8B #8B3368 #8B8233 #338B56
split-complementary
#333C8B #8B5633 #688B33
monochromatic
#121531 #23295E #333C8B #434FB8 #6E78CA

Accessibility & contrast

On white

9.72
#333C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#333C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C8B
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C8B#FFFFFF#000000##FFFFFF
##333C8B1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333c8b;
/* rgb */ color: rgb(51, 60, 139);
/* oklch */ color: oklch(39.6% 0.130 273.9);
Tailwind
colors: {
  custom: {
    50: '#7471ad',
    500: '#333c8b',
    950: '#000000',
  },
}
SCSS
$custom: #333c8b;
$custom-light: #7471ad;
$custom-dark: #000000;
JSON
{
  "hex": "#333c8b",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 233.864,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39575,
    "c": 0.13031,
    "h": 273.9
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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