#3334A8#3334A8

#3334A8 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.180 H 274.5°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#3334A8
RGBrgb(51, 52, 168)
HSLhsl(239, 53%, 43%)
HSVhsv(239, 70%, 66%)
CMYKcmyk(69.6%, 69%, 0%, 34.1%)
CIE-LABlab(29.38, 37.74, -62.18)
CIE-LCHlch(29.38, 72.74, 301.25°)
OKLaboklab(40.69% 0.0142 -0.1797)
OKLCHoklch(40.69% 0.18 274.5)
XYZxyz(9.6588, 5.9860, 37.6846)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3334A8 #A8A733
analogous
#336EA8 #3334A8 #6C33A8
triadic
#3334A8 #A83334 #34A833
tetradic
#3334A8 #A8336E #A8A733 #33A86C
square
#3334A8 #A8336E #A8A733 #33A86C
split-complementary
#3334A8 #A86C33 #6EA833
monochromatic
#16174A #252579 #3334A8 #4F50C9 #7E7ED8

Accessibility & contrast

On white

9.56
#3334A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3334A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3334A8
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3334A8#FFFFFF#000000##FFFFFF
##3334A81.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3334a8;
/* rgb */ color: rgb(51, 52, 168);
/* oklch */ color: oklch(40.7% 0.180 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b6cc3',
    500: '#3334a8',
    950: '#000000',
  },
}
SCSS
$custom: #3334a8;
$custom-light: #7b6cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3334a8",
  "rgb": {
    "r": 51,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 239.487,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4069,
    "c": 0.18023,
    "h": 274.5
  },
  "luminance": 0.05987
}

Semantic roles & 50–950 ramp

primary
#3334A8
secondary
#C1C076
accent
#DC4BDD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3334A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3334A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva