#3338AA#3338AA

#3338AA is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.178 H 273.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#3338AA
RGBrgb(51, 56, 170)
HSLhsl(237, 54%, 43%)
HSVhsv(237, 70%, 67%)
CMYKcmyk(70%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.48, 35.95, -61.57)
CIE-LCHlch(30.48, 71.30, 300.28°)
OKLaboklab(41.55% 0.0113 -0.1779)
OKLCHoklch(41.55% 0.178 273.6)
XYZxyz(10.0327, 6.4335, 38.7355)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338AA #AAA533
analogous
#3373AA #3338AA #6933AA
triadic
#3338AA #AA3338 #38AA33
tetradic
#3338AA #AA3373 #AAA533 #33AA69
square
#3338AA #AA3373 #AAA533 #33AA69
split-complementary
#3338AA #AA6933 #73AA33
monochromatic
#17194C #25287B #3338AA #5055CA #7F83D9

Accessibility & contrast

On white

9.18
#3338AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3338AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3338AA#FFFFFF#000000##FFFFFF
##3338AA1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3338aa;
/* rgb */ color: rgb(51, 56, 170);
/* oklch */ color: oklch(41.5% 0.178 273.6);
Tailwind
colors: {
  custom: {
    50: '#7b6fc4',
    500: '#3338aa',
    950: '#000000',
  },
}
SCSS
$custom: #3338aa;
$custom-light: #7b6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3338aa",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 237.479,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41546,
    "c": 0.17823,
    "h": 273.6
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#3338AA
secondary
#C2BE77
accent
#D74BDD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3338AA

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

Preview Lab → · Contrast checker → · Palette generator →

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