#333A80#333A80

#333A80 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.3% C 0.117 H 275.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#333A80
RGBrgb(51, 58, 128)
HSLhsl(235, 43%, 35%)
HSVhsv(235, 60%, 50%)
CMYKcmyk(60.2%, 54.7%, 0%, 49.8%)
CIE-LABlab(27.54, 19.62, -40.63)
CIE-LCHlch(27.54, 45.13, 295.78°)
OKLaboklab(38.3% 0.0105 -0.1164)
OKLCHoklch(38.3% 0.117 275.1)
XYZxyz(6.7733, 5.2879, 21.0816)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A80 #807933
analogous
#336180 #333A80 #523380
triadic
#333A80 #80333A #3A8033
tetradic
#333A80 #803361 #807933 #338052
square
#333A80 #803361 #807933 #338052
split-complementary
#333A80 #805233 #618033
monochromatic
#101228 #222654 #333A80 #444EAC #6A72C4

Accessibility & contrast

On white

10.21
#333A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#333A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A80
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A80#FFFFFF#000000##FFFFFF
##333A801.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104482
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333a80;
/* rgb */ color: rgb(51, 58, 128);
/* oklch */ color: oklch(38.3% 0.117 275.1);
Tailwind
colors: {
  custom: {
    50: '#7270a5',
    500: '#333a80',
    950: '#000000',
  },
}
SCSS
$custom: #333a80;
$custom-light: #7270a5;
$custom-dark: #000000;
JSON
{
  "hex": "#333a80",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 128
  },
  "hsl": {
    "h": 234.545,
    "s": 43.017,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38297,
    "c": 0.11683,
    "h": 275.1
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#333A80
secondary
#ABA563
accent
#C755D3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #333A80

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

Preview Lab → · Contrast checker → · Palette generator →

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