#3331AF#3331AF

#3331AF is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.192 H 274.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#3331AF
RGBrgb(51, 49, 175)
HSLhsl(241, 56%, 44%)
HSVhsv(241, 72%, 69%)
CMYKcmyk(70.9%, 72%, 0%, 31.4%)
CIE-LABlab(29.40, 41.91, -66.35)
CIE-LCHlch(29.40, 78.48, 302.28°)
OKLaboklab(40.91% 0.015 -0.1918)
OKLCHoklch(40.91% 0.192 274.5)
XYZxyz(10.1989, 5.9946, 41.1687)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331AF #ADAF31
analogous
#316EAF #3331AF #7231AF
triadic
#3331AF #AF3331 #31AF33
tetradic
#3331AF #AF316E #ADAF31 #31AF72
square
#3331AF #AF316E #ADAF31 #31AF72
split-complementary
#3331AF #AF7231 #6EAF31
monochromatic
#17164F #25247F #3331AF #514FCE #817FDB

Accessibility & contrast

On white

9.55
#3331AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3331AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331AF
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331AF#FFFFFF#000000##FFFFFF
##3331AF1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3331af;
/* rgb */ color: rgb(51, 49, 175);
/* oklch */ color: oklch(40.9% 0.192 274.5);
Tailwind
colors: {
  custom: {
    50: '#7d6ac8',
    500: '#3331af',
    950: '#000000',
  },
}
SCSS
$custom: #3331af;
$custom-light: #7d6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#3331af",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 240.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4091,
    "c": 0.19241,
    "h": 274.5
  },
  "luminance": 0.05996
}

Semantic roles & 50–950 ramp

primary
#3331AF
secondary
#C3C478
accent
#E048DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3331AF

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

Preview Lab → · Contrast checker → · Palette generator →

#3331AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva