#333BA1#333BA1

#333BA1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.163 H 273.4°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#333BA1
RGBrgb(51, 59, 161)
HSLhsl(236, 52%, 42%)
HSVhsv(236, 68%, 63%)
CMYKcmyk(68.3%, 63.4%, 0%, 36.9%)
CIE-LABlab(30.41, 30.85, -56.27)
CIE-LCHlch(30.41, 64.17, 298.74°)
OKLaboklab(41.25% 0.0097 -0.1623)
OKLCHoklch(41.25% 0.163 273.4)
XYZxyz(9.3601, 6.4041, 34.4541)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BA1 #A19933
analogous
#3372A1 #333BA1 #6233A1
triadic
#333BA1 #A1333B #3BA133
tetradic
#333BA1 #A13372 #A19933 #33A162
square
#333BA1 #A13372 #A19933 #33A162
split-complementary
#333BA1 #A16233 #72A133
monochromatic
#161944 #242A73 #333BA1 #4B54C6 #7A80D5

Accessibility & contrast

On white

9.21
#333BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#333BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BA1
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BA1#FFFFFF#000000##FFFFFF
##333BA11.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333ba1;
/* rgb */ color: rgb(51, 59, 161);
/* oklch */ color: oklch(41.2% 0.163 273.4);
Tailwind
colors: {
  custom: {
    50: '#7971be',
    500: '#333ba1',
    950: '#000000',
  },
}
SCSS
$custom: #333ba1;
$custom-light: #7971be;
$custom-dark: #000000;
JSON
{
  "hex": "#333ba1",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 235.636,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41249,
    "c": 0.1626,
    "h": 273.4
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#333BA1
secondary
#BDB872
accent
#D14CDB
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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