#3338AD#3338AD

#3338AD is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.182 H 273.4°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#3338AD
RGBrgb(51, 56, 173)
HSLhsl(238, 54%, 44%)
HSVhsv(238, 71%, 68%)
CMYKcmyk(70.5%, 67.6%, 0%, 32.2%)
CIE-LABlab(30.76, 37.00, -62.92)
CIE-LCHlch(30.76, 72.99, 300.46°)
OKLaboklab(41.83% 0.0109 -0.1818)
OKLCHoklch(41.83% 0.182 273.4)
XYZxyz(10.3197, 6.5483, 40.2472)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338AD #ADA833
analogous
#3375AD #3338AD #6B33AD
triadic
#3338AD #AD3338 #38AD33
tetradic
#3338AD #AD3375 #ADA833 #33AD6B
square
#3338AD #AD3375 #ADA833 #33AD6B
split-complementary
#3338AD #AD6B33 #75AD33
monochromatic
#17194E #25297E #3338AD #5156CC #8184DA

Accessibility & contrast

On white

9.09
#3338AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3338AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338AD
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338AD#FFFFFF#000000##FFFFFF
##3338AD1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0043AB
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3338ad;
/* rgb */ color: rgb(51, 56, 173);
/* oklch */ color: oklch(41.8% 0.182 273.4);
Tailwind
colors: {
  custom: {
    50: '#7c6fc6',
    500: '#3338ad',
    950: '#000000',
  },
}
SCSS
$custom: #3338ad;
$custom-light: #7c6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3338ad",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 237.541,
    "s": 54.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41829,
    "c": 0.18214,
    "h": 273.4
  },
  "luminance": 0.06549
}

Semantic roles & 50–950 ramp

primary
#3338AD
secondary
#C3C079
accent
#D84ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3338AD

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

Preview Lab → · Contrast checker → · Palette generator →

#3338AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva