#3338BD#3338BD

#3338BD is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.4% C 0.203 H 272.6°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#3338BD
RGBrgb(51, 56, 189)
HSLhsl(238, 58%, 47%)
HSVhsv(238, 73%, 74%)
CMYKcmyk(73%, 70.4%, 0%, 25.9%)
CIE-LABlab(32.27, 42.51, -69.93)
CIE-LCHlch(32.27, 81.84, 301.29°)
OKLaboklab(43.38% 0.009 -0.2023)
OKLCHoklch(43.38% 0.203 272.6)
XYZxyz(11.9616, 7.2051, 48.8946)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338BD #BDB833
analogous
#337DBD #3338BD #7333BD
triadic
#3338BD #BD3338 #38BD33
tetradic
#3338BD #BD337D #BDB833 #33BD73
square
#3338BD #BD337D #BDB833 #33BD73
split-complementary
#3338BD #BD7333 #7DBD33
monochromatic
#191B5D #262A8D #3338BD #5B5FD3 #8B8EE0

Accessibility & contrast

On white

8.60
#3338BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3338BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3338BD#FFFFFF#000000##FFFFFF
##3338BD1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0045BB
Tritanopia (blue-blind)
#005D76
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3338bd;
/* rgb */ color: rgb(51, 56, 189);
/* oklch */ color: oklch(43.4% 0.203 272.6);
Tailwind
colors: {
  custom: {
    50: '#7f6fd2',
    500: '#3338bd',
    950: '#000000',
  },
}
SCSS
$custom: #3338bd;
$custom-light: #7f6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#3338bd",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 237.826,
    "s": 57.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43382,
    "c": 0.2025,
    "h": 272.6
  },
  "luminance": 0.07206
}

Semantic roles & 50–950 ramp

primary
#3338BD
secondary
#CAC782
accent
#DB47E1
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3338BD

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

Preview Lab → · Contrast checker → · Palette generator →

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