#333CA5#333CA5

#333CA5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.167 H 273.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#333CA5
RGBrgb(51, 60, 165)
HSLhsl(235, 53%, 42%)
HSVhsv(235, 69%, 65%)
CMYKcmyk(69.1%, 63.6%, 0%, 35.3%)
CIE-LABlab(31.00, 31.64, -57.72)
CIE-LCHlch(31.00, 65.82, 298.73°)
OKLaboklab(41.79% 0.0087 -0.1666)
OKLCHoklch(41.79% 0.167 273)
XYZxyz(9.7704, 6.6512, 36.3589)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333CA5 #A59C33
analogous
#3375A5 #333CA5 #6333A5
triadic
#333CA5 #A5333C #3CA533
tetradic
#333CA5 #A53375 #A59C33 #33A563
square
#333CA5 #A53375 #A59C33 #33A563
split-complementary
#333CA5 #A56333 #75A533
monochromatic
#161A48 #252B76 #333CA5 #4D57C8 #7C83D6

Accessibility & contrast

On white

9.01
#333CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#333CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333CA5
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333CA5#FFFFFF#000000##FFFFFF
##333CA51.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #333ca5;
/* rgb */ color: rgb(51, 60, 165);
/* oklch */ color: oklch(41.8% 0.167 273.0);
Tailwind
colors: {
  custom: {
    50: '#7a72c1',
    500: '#333ca5',
    950: '#000000',
  },
}
SCSS
$custom: #333ca5;
$custom-light: #7a72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333ca5",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 235.263,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41788,
    "c": 0.16679,
    "h": 273
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#333CA5
secondary
#BFB975
accent
#D14CDC
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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