#3338BA#3338BA

#3338BA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.1% C 0.199 H 272.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#3338BA
RGBrgb(51, 56, 186)
HSLhsl(238, 57%, 46%)
HSVhsv(238, 73%, 73%)
CMYKcmyk(72.6%, 69.9%, 0%, 27.1%)
CIE-LABlab(31.98, 41.49, -68.64)
CIE-LCHlch(31.98, 80.20, 301.15°)
OKLaboklab(43.09% 0.0094 -0.1985)
OKLCHoklch(43.09% 0.199 272.7)
XYZxyz(11.6394, 7.0761, 47.1973)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338BA #BAB533
analogous
#337CBA #3338BA #7233BA
triadic
#3338BA #BA3338 #38BA33
tetradic
#3338BA #BA337C #BAB533 #33BA72
square
#3338BA #BA337C #BAB533 #33BA72
split-complementary
#3338BA #BA7233 #7CBA33
monochromatic
#191B5A #262A8A #3338BA #595DD1 #898CDF

Accessibility & contrast

On white

8.69
#3338BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3338BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3338BA#FFFFFF#000000##FFFFFF
##3338BA1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#0045B8
Tritanopia (blue-blind)
#005C75
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3338ba;
/* rgb */ color: rgb(51, 56, 186);
/* oklch */ color: oklch(43.1% 0.199 272.7);
Tailwind
colors: {
  custom: {
    50: '#7f6fd0',
    500: '#3338ba',
    950: '#000000',
  },
}
SCSS
$custom: #3338ba;
$custom-light: #7f6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#3338ba",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 237.778,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43086,
    "c": 0.19874,
    "h": 272.7
  },
  "luminance": 0.07077
}

Semantic roles & 50–950 ramp

primary
#3338BA
secondary
#C9C680
accent
#DB48E0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3338BA

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

Preview Lab → · Contrast checker → · Palette generator →

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