#3338AC#3338AC

#3338AC is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.181 H 273.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#3338AC
RGBrgb(51, 56, 172)
HSLhsl(238, 54%, 44%)
HSVhsv(238, 70%, 67%)
CMYKcmyk(70.3%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.66, 36.65, -62.47)
CIE-LCHlch(30.66, 72.43, 300.40°)
OKLaboklab(41.73% 0.0111 -0.1805)
OKLCHoklch(41.73% 0.181 273.5)
XYZxyz(10.2233, 6.5097, 39.7395)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338AC #ACA733
analogous
#3374AC #3338AC #6A33AC
triadic
#3338AC #AC3338 #38AC33
tetradic
#3338AC #AC3374 #ACA733 #33AC6A
square
#3338AC #AC3374 #ACA733 #33AC6A
split-complementary
#3338AC #AC6A33 #74AC33
monochromatic
#17194E #25297D #3338AC #5156CB #8084D9

Accessibility & contrast

On white

9.12
#3338AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3338AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338AC
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338AC#FFFFFF#000000##FFFFFF
##3338AC1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3338ac;
/* rgb */ color: rgb(51, 56, 172);
/* oklch */ color: oklch(41.7% 0.181 273.5);
Tailwind
colors: {
  custom: {
    50: '#7c6fc6',
    500: '#3338ac',
    950: '#000000',
  },
}
SCSS
$custom: #3338ac;
$custom-light: #7c6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3338ac",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 237.521,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41734,
    "c": 0.18084,
    "h": 273.5
  },
  "luminance": 0.06511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3338AC

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

Preview Lab → · Contrast checker → · Palette generator →

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