#333CA1#333CA1

#333CA1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.4% C 0.161 H 273.2°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#333CA1
RGBrgb(51, 60, 161)
HSLhsl(235, 52%, 42%)
HSVhsv(235, 68%, 63%)
CMYKcmyk(68.3%, 62.7%, 0%, 36.9%)
CIE-LABlab(30.66, 30.20, -55.86)
CIE-LCHlch(30.66, 63.51, 298.40°)
OKLaboklab(41.43% 0.0089 -0.1611)
OKLCHoklch(41.43% 0.161 273.2)
XYZxyz(9.4120, 6.5079, 34.4714)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333CA1 #A19833
analogous
#3373A1 #333CA1 #6133A1
triadic
#333CA1 #A1333C #3CA133
tetradic
#333CA1 #A13373 #A19833 #33A161
square
#333CA1 #A13373 #A19833 #33A161
split-complementary
#333CA1 #A16133 #73A133
monochromatic
#161944 #242B73 #333CA1 #4B55C6 #7A81D5

Accessibility & contrast

On white

9.12
#333CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#333CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333CA1
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333CA1#FFFFFF#000000##FFFFFF
##333CA11.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333ca1;
/* rgb */ color: rgb(51, 60, 161);
/* oklch */ color: oklch(41.4% 0.161 273.2);
Tailwind
colors: {
  custom: {
    50: '#7971be',
    500: '#333ca1',
    950: '#000000',
  },
}
SCSS
$custom: #333ca1;
$custom-light: #7971be;
$custom-dark: #000000;
JSON
{
  "hex": "#333ca1",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 161
  },
  "hsl": {
    "h": 235.091,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41432,
    "c": 0.16136,
    "h": 273.2
  },
  "luminance": 0.06509
}

Semantic roles & 50–950 ramp

primary
#333CA1
secondary
#BDB772
accent
#D04CDB
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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