#333A7D#333A7D

#333A7D is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.1% C 0.112 H 275.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#333A7D
RGBrgb(51, 58, 125)
HSLhsl(234, 42%, 35%)
HSVhsv(234, 59%, 49%)
CMYKcmyk(59.2%, 53.6%, 0%, 51%)
CIE-LABlab(27.33, 18.55, -39.10)
CIE-LCHlch(27.33, 43.27, 295.38°)
OKLaboklab(38.07% 0.0103 -0.1118)
OKLCHoklch(38.07% 0.112 275.2)
XYZxyz(6.5788, 5.2101, 20.0570)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A7D #7D7633
analogous
#335F7D #333A7D #51337D
triadic
#333A7D #7D333A #3A7D33
tetradic
#333A7D #7D335F #7D7633 #337D51
square
#333A7D #7D335F #7D7633 #337D51
split-complementary
#333A7D #7D5133 #5F7D33
monochromatic
#101226 #212652 #333A7D #454EA8 #6971C2

Accessibility & contrast

On white

10.28
#333A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#333A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A7D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A7D#FFFFFF#000000##FFFFFF
##333A7D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15447F
Deuteranopia (green-blind)
#063E7C
Tritanopia (blue-blind)
#054955
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333a7d;
/* rgb */ color: rgb(51, 58, 125);
/* oklch */ color: oklch(38.1% 0.112 275.2);
Tailwind
colors: {
  custom: {
    50: '#7270a3',
    500: '#333a7d',
    950: '#000000',
  },
}
SCSS
$custom: #333a7d;
$custom-light: #7270a3;
$custom-dark: #000000;
JSON
{
  "hex": "#333a7d",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 125
  },
  "hsl": {
    "h": 234.324,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38067,
    "c": 0.11231,
    "h": 275.2
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#333A7D
secondary
#AAA362
accent
#C656D2
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #333A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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