#3838C9#3838C9

#3838C9 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.9% C 0.216 H 273.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#3838C9
RGBrgb(56, 56, 201)
HSLhsl(240, 57%, 50%)
HSVhsv(240, 72%, 79%)
CMYKcmyk(72.1%, 72.1%, 0%, 21.2%)
CIE-LABlab(33.74, 47.01, -74.53)
CIE-LCHlch(33.74, 88.12, 302.24°)
OKLaboklab(44.87% 0.0129 -0.2156)
OKLCHoklch(44.87% 0.216 273.4)
XYZxyz(13.5842, 7.8848, 56.0530)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838C9 #C9C938
analogous
#3880C9 #3838C9 #8038C9
triadic
#3838C9 #C93838 #38C938
tetradic
#3838C9 #C93880 #C9C938 #38C980
square
#3838C9 #C93880 #C9C938 #38C980
split-complementary
#3838C9 #C98038 #80C938
monochromatic
#1D1D6A #2A2A9A #3838C9 #6868D6 #9898E3

Accessibility & contrast

On white

8.15
#3838C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3838C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3838C9#FFFFFF#000000##FFFFFF
##3838C91.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#0048C6
Tritanopia (blue-blind)
#00617D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3838c9;
/* rgb */ color: rgb(56, 56, 201);
/* oklch */ color: oklch(44.9% 0.216 273.4);
Tailwind
colors: {
  custom: {
    50: '#8470db',
    500: '#3838c9',
    950: '#000000',
  },
}
SCSS
$custom: #3838c9;
$custom-light: #8470db;
$custom-dark: #000000;
JSON
{
  "hex": "#3838c9",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 240,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.44868,
    "c": 0.21598,
    "h": 273.4
  },
  "luminance": 0.07886
}

Semantic roles & 50–950 ramp

primary
#3838C9
secondary
#CFCF8E
accent
#E147E1
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3838C9

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

Preview Lab → · Contrast checker → · Palette generator →

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