#3838CB#3838CB

#3838CB is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.1% C 0.218 H 273.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#3838CB
RGBrgb(56, 56, 203)
HSLhsl(240, 59%, 51%)
HSVhsv(240, 72%, 80%)
CMYKcmyk(72.4%, 72.4%, 0%, 20.4%)
CIE-LABlab(33.94, 47.67, -75.37)
CIE-LCHlch(33.94, 89.18, 302.31°)
OKLaboklab(45.07% 0.0126 -0.218)
OKLCHoklch(45.07% 0.218 273.3)
XYZxyz(13.8209, 7.9795, 57.3001)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838CB #CBCB38
analogous
#3881CB #3838CB #8138CB
triadic
#3838CB #CB3838 #38CB38
tetradic
#3838CB #CB3881 #CBCB38 #38CB81
square
#3838CB #CB3881 #CBCB38 #38CB81
split-complementary
#3838CB #CB8138 #81CB38
monochromatic
#1C1C6C #29299D #3838CB #6969D8 #9999E4

Accessibility & contrast

On white

8.09
#3838CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3838CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3838CB#FFFFFF#000000##FFFFFF
##3838CB1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CF
Deuteranopia (green-blind)
#0049C8
Tritanopia (blue-blind)
#00627E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3838cb;
/* rgb */ color: rgb(56, 56, 203);
/* oklch */ color: oklch(45.1% 0.218 273.3);
Tailwind
colors: {
  custom: {
    50: '#8570dc',
    500: '#3838cb',
    950: '#000000',
  },
}
SCSS
$custom: #3838cb;
$custom-light: #8570dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3838cb",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 240,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45069,
    "c": 0.21839,
    "h": 273.3
  },
  "luminance": 0.07981
}

Semantic roles & 50–950 ramp

primary
#3838CB
secondary
#D0D08F
accent
#E246E2
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3838CB

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

Preview Lab → · Contrast checker → · Palette generator →

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