#333381#333381

#333381 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.128 H 278.1°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#333381
RGBrgb(51, 51, 129)
HSLhsl(240, 43%, 35%)
HSVhsv(240, 60%, 51%)
CMYKcmyk(60.5%, 60.5%, 0%, 49.4%)
CIE-LABlab(25.73, 24.70, -44.19)
CIE-LCHlch(25.73, 50.62, 299.21°)
OKLaboklab(36.97% 0.0181 -0.1269)
OKLCHoklch(36.97% 0.128 278.1)
XYZxyz(6.5103, 4.6560, 21.3203)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333381 #818133
analogous
#335A81 #333381 #5A3381
triadic
#333381 #813333 #338133
tetradic
#333381 #81335A #818133 #33815A
square
#333381 #81335A #818133 #33815A
split-complementary
#333381 #815A33 #5A8133
monochromatic
#101029 #222255 #333381 #4444AD #6A6AC4

Accessibility & contrast

On white

10.87
#333381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#333381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333381
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333381#FFFFFF#000000##FFFFFF
##3333811.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #333381;
/* rgb */ color: rgb(51, 51, 129);
/* oklch */ color: oklch(37.0% 0.128 278.1);
Tailwind
colors: {
  custom: {
    50: '#736aa6',
    500: '#333381',
    950: '#000000',
  },
}
SCSS
$custom: #333381;
$custom-light: #736aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#333381",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36973,
    "c": 0.12816,
    "h": 278.1
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#333381
secondary
#ACAC64
accent
#D355D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #333381

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

Preview Lab → · Contrast checker → · Palette generator →

#333381 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva