#3838CF#3838CF

#3838CF is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.5% C 0.223 H 273.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#3838CF
RGBrgb(56, 56, 207)
HSLhsl(240, 61%, 52%)
HSVhsv(240, 73%, 81%)
CMYKcmyk(72.9%, 72.9%, 0%, 18.8%)
CIE-LABlab(34.34, 48.97, -77.03)
CIE-LCHlch(34.34, 91.28, 302.45°)
OKLaboklab(45.47% 0.0119 -0.2229)
OKLCHoklch(45.47% 0.223 273.1)
XYZxyz(14.3038, 8.1726, 59.8430)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838CF #CFCF38
analogous
#3884CF #3838CF #8438CF
triadic
#3838CF #CF3838 #38CF38
tetradic
#3838CF #CF3884 #CFCF38 #38CF84
square
#3838CF #CF3884 #CFCF38 #38CF84
split-complementary
#3838CF #CF8438 #84CF38
monochromatic
#1B1B71 #2727A3 #3838CF #6969DB #9B9BE7

Accessibility & contrast

On white

7.97
#3838CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3838CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3838CF#FFFFFF#000000##FFFFFF
##3838CF1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#0049CC
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3838cf;
/* rgb */ color: rgb(56, 56, 207);
/* oklch */ color: oklch(45.5% 0.223 273.1);
Tailwind
colors: {
  custom: {
    50: '#8570df',
    500: '#3838cf',
    950: '#000000',
  },
}
SCSS
$custom: #3838cf;
$custom-light: #8570df;
$custom-dark: #000000;
JSON
{
  "hex": "#3838cf",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 240,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.45473,
    "c": 0.2232,
    "h": 273.1
  },
  "luminance": 0.08174
}

Semantic roles & 50–950 ramp

primary
#3838CF
secondary
#D3D390
accent
#E444E4
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3838CF

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

Preview Lab → · Contrast checker → · Palette generator →

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