#3838AA#3838AA

#3838AA is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.177 H 275.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#3838AA
RGBrgb(56, 56, 170)
HSLhsl(240, 50%, 44%)
HSVhsv(240, 67%, 67%)
CMYKcmyk(67.1%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.81, 36.61, -61.02)
CIE-LCHlch(30.81, 71.16, 300.96°)
OKLaboklab(41.87% 0.0172 -0.1761)
OKLCHoklch(41.87% 0.177 275.6)
XYZxyz(10.2984, 6.5705, 38.7479)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838AA #AAAA38
analogous
#3871AA #3838AA #7138AA
triadic
#3838AA #AA3838 #38AA38
tetradic
#3838AA #AA3871 #AAAA38 #38AA71
square
#3838AA #AA3871 #AAAA38 #38AA71
split-complementary
#3838AA #AA7138 #71AA38
monochromatic
#1A1A4E #29297C #3838AA #5757C8 #8585D7

Accessibility & contrast

On white

9.07
#3838AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3838AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838AA
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838AA#FFFFFF#000000##FFFFFF
##3838AA1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3838aa;
/* rgb */ color: rgb(56, 56, 170);
/* oklch */ color: oklch(41.9% 0.177 275.6);
Tailwind
colors: {
  custom: {
    50: '#7d6fc4',
    500: '#3838aa',
    950: '#000000',
  },
}
SCSS
$custom: #3838aa;
$custom-light: #7d6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3838aa",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 240,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41869,
    "c": 0.17697,
    "h": 275.6
  },
  "luminance": 0.06571
}

Semantic roles & 50–950 ramp

primary
#3838AA
secondary
#C1C17D
accent
#DA4EDA
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3838AA

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

Preview Lab → · Contrast checker → · Palette generator →

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