#333DA5#333DA5

#333DA5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.166 H 272.7°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#333DA5
RGBrgb(51, 61, 165)
HSLhsl(235, 53%, 42%)
HSVhsv(235, 69%, 65%)
CMYKcmyk(69.1%, 63%, 0%, 35.3%)
CIE-LABlab(31.25, 30.99, -57.32)
CIE-LCHlch(31.25, 65.16, 298.40°)
OKLaboklab(41.97% 0.0079 -0.1654)
OKLCHoklch(41.97% 0.166 272.7)
XYZxyz(9.8232, 6.7570, 36.3766)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333DA5 #A59B33
analogous
#3376A5 #333DA5 #6233A5
triadic
#333DA5 #A5333D #3DA533
tetradic
#333DA5 #A53376 #A59B33 #33A562
square
#333DA5 #A53376 #A59B33 #33A562
split-complementary
#333DA5 #A56233 #76A533
monochromatic
#161A48 #252C76 #333DA5 #4D58C8 #7C84D6

Accessibility & contrast

On white

8.93
#333DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#333DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333DA5
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333DA5#FFFFFF#000000##FFFFFF
##333DA51.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333da5;
/* rgb */ color: rgb(51, 61, 165);
/* oklch */ color: oklch(42.0% 0.166 272.7);
Tailwind
colors: {
  custom: {
    50: '#7a72c1',
    500: '#333da5',
    950: '#000000',
  },
}
SCSS
$custom: #333da5;
$custom-light: #7a72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333da5",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 165
  },
  "hsl": {
    "h": 234.737,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4197,
    "c": 0.16555,
    "h": 272.7
  },
  "luminance": 0.06758
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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