#333AB8#333AB8

#333AB8 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.2% C 0.194 H 272.5°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#333AB8
RGBrgb(51, 58, 184)
HSLhsl(237, 57%, 46%)
HSVhsv(237, 72%, 72%)
CMYKcmyk(72.3%, 68.5%, 0%, 27.8%)
CIE-LABlab(32.23, 39.59, -67.04)
CIE-LCHlch(32.23, 77.85, 300.56°)
OKLaboklab(43.21% 0.0085 -0.1938)
OKLCHoklch(43.21% 0.194 272.5)
XYZxyz(11.5271, 7.1895, 46.1183)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AB8 #B8B133
analogous
#337CB8 #333AB8 #6E33B8
triadic
#333AB8 #B8333A #3AB833
tetradic
#333AB8 #B8337C #B8B133 #33B86E
square
#333AB8 #B8337C #B8B133 #33B86E
split-complementary
#333AB8 #B86E33 #7CB833
monochromatic
#181C58 #262B88 #333AB8 #585ED1 #888CDE

Accessibility & contrast

On white

8.61
#333AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#333AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AB8
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AB8#FFFFFF#000000##FFFFFF
##333AB81.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #333ab8;
/* rgb */ color: rgb(51, 58, 184);
/* oklch */ color: oklch(43.2% 0.194 272.5);
Tailwind
colors: {
  custom: {
    50: '#7e71ce',
    500: '#333ab8',
    950: '#000000',
  },
}
SCSS
$custom: #333ab8;
$custom-light: #7e71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#333ab8",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 236.842,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43212,
    "c": 0.19402,
    "h": 272.5
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#333AB8
secondary
#C8C47F
accent
#D848E0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #333AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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