#3838AF#3838AF

#3838AF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.183 H 275.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#3838AF
RGBrgb(56, 56, 175)
HSLhsl(240, 52%, 45%)
HSVhsv(240, 68%, 69%)
CMYKcmyk(68%, 68%, 0%, 31.4%)
CIE-LABlab(31.26, 38.31, -63.27)
CIE-LCHlch(31.26, 73.97, 301.20°)
OKLaboklab(42.34% 0.0167 -0.1827)
OKLCHoklch(42.34% 0.183 275.2)
XYZxyz(10.7804, 6.7633, 41.2865)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838AF #AFAF38
analogous
#3873AF #3838AF #7338AF
triadic
#3838AF #AF3838 #38AF38
tetradic
#3838AF #AF3873 #AFAF38 #38AF73
square
#3838AF #AF3873 #AFAF38 #38AF73
split-complementary
#3838AF #AF7338 #73AF38
monochromatic
#1A1A52 #292981 #3838AF #5A5ACA #8888D9

Accessibility & contrast

On white

8.93
#3838AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3838AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3838AF#FFFFFF#000000##FFFFFF
##3838AF1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3838af;
/* rgb */ color: rgb(56, 56, 175);
/* oklch */ color: oklch(42.3% 0.183 275.2);
Tailwind
colors: {
  custom: {
    50: '#7e6fc8',
    500: '#3838af',
    950: '#000000',
  },
}
SCSS
$custom: #3838af;
$custom-light: #7e6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3838af",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 240,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42337,
    "c": 0.18348,
    "h": 275.2
  },
  "luminance": 0.06764
}

Semantic roles & 50–950 ramp

primary
#3838AF
secondary
#C3C380
accent
#DB4DDB
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3838AF

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

Preview Lab → · Contrast checker → · Palette generator →

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