#3958CB#3958CB

#3958CB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.182 H 267.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#3958CB
RGBrgb(57, 88, 203)
HSLhsl(227, 58%, 51%)
HSVhsv(227, 72%, 80%)
CMYKcmyk(71.9%, 56.7%, 0%, 20.4%)
CIE-LABlab(41.47, 28.10, -63.04)
CIE-LCHlch(41.47, 69.02, 294.02°)
OKLaboklab(50.6% -0.0068 -0.1817)
OKLCHoklch(50.6% 0.182 267.8)
XYZxyz(15.9528, 12.1594, 57.9946)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958CB #CBAC39
analogous
#39A1CB #3958CB #6339CB
triadic
#3958CB #CB3958 #58CB39
tetradic
#3958CB #CB39A1 #CBAC39 #39CB63
square
#3958CB #CB39A1 #CBAC39 #39CB63
split-complementary
#3958CB #CB6339 #A1CB39
monochromatic
#1D2E6D #29429D #3958CB #6981D8 #9AAAE4

Accessibility & contrast

On white

6.12
#3958CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#3958CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958CB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958CB#FFFFFF#000000##FFFFFF
##3958CB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3958cb;
/* rgb */ color: rgb(57, 88, 203);
/* oklch */ color: oklch(50.6% 0.182 267.8);
Tailwind
colors: {
  custom: {
    50: '#8286dc',
    500: '#3958cb',
    950: '#000000',
  },
}
SCSS
$custom: #3958cb;
$custom-light: #8286dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3958cb",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 227.26,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50598,
    "c": 0.18185,
    "h": 267.8
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#3958CB
secondary
#D0C390
accent
#C146E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3958CB

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

Preview Lab → · Contrast checker → · Palette generator →

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