#3338BC#3338BC

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

Color values

HEX#3338BC
RGBrgb(51, 56, 188)
HSLhsl(238, 57%, 47%)
HSVhsv(238, 73%, 74%)
CMYKcmyk(72.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(32.17, 42.17, -69.50)
CIE-LCHlch(32.17, 81.29, 301.25°)
OKLaboklab(43.28% 0.0091 -0.201)
OKLCHoklch(43.28% 0.201 272.6)
XYZxyz(11.8535, 7.1618, 48.3249)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338BC #BCB733
analogous
#337DBC #3338BC #7333BC
triadic
#3338BC #BC3338 #38BC33
tetradic
#3338BC #BC337D #BCB733 #33BC73
square
#3338BC #BC337D #BCB733 #33BC73
split-complementary
#3338BC #BC7333 #7DBC33
monochromatic
#191B5C #262A8C #3338BC #5A5ED2 #8A8DDF

Accessibility & contrast

On white

8.63
#3338BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3338BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3338BC#FFFFFF#000000##FFFFFF
##3338BC1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3338bc;
/* rgb */ color: rgb(51, 56, 188);
/* oklch */ color: oklch(43.3% 0.201 272.6);
Tailwind
colors: {
  custom: {
    50: '#7f6fd1',
    500: '#3338bc',
    950: '#000000',
  },
}
SCSS
$custom: #3338bc;
$custom-light: #7f6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3338bc",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 237.81,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43283,
    "c": 0.20125,
    "h": 272.6
  },
  "luminance": 0.07163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3338BC

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

Preview Lab → · Contrast checker → · Palette generator →

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