#3958CA#3958CA

#3958CA is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.5% C 0.181 H 267.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#3958CA
RGBrgb(57, 88, 202)
HSLhsl(227, 58%, 51%)
HSVhsv(227, 72%, 79%)
CMYKcmyk(71.8%, 56.4%, 0%, 20.8%)
CIE-LABlab(41.39, 27.73, -62.58)
CIE-LCHlch(41.39, 68.45, 293.90°)
OKLaboklab(50.52% -0.0069 -0.1804)
OKLCHoklch(50.52% 0.181 267.8)
XYZxyz(15.8340, 12.1119, 57.3690)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3958CA #CAAB39
analogous
#39A1CA #3958CA #6239CA
triadic
#3958CA #CA3958 #58CA39
tetradic
#3958CA #CA39A1 #CAAB39 #39CA62
square
#3958CA #CA39A1 #CAAB39 #39CA62
split-complementary
#3958CA #CA6239 #A1CA39
monochromatic
#1D2E6C #2A429C #3958CA #6981D7 #9AA9E4

Accessibility & contrast

On white

6.14
#3958CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#3958CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3958CA
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3958CA#FFFFFF#000000##FFFFFF
##3958CA1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3958ca;
/* rgb */ color: rgb(57, 88, 202);
/* oklch */ color: oklch(50.5% 0.181 267.8);
Tailwind
colors: {
  custom: {
    50: '#8286db',
    500: '#3958ca',
    950: '#000000',
  },
}
SCSS
$custom: #3958ca;
$custom-light: #8286db;
$custom-dark: #000000;
JSON
{
  "hex": "#3958ca",
  "rgb": {
    "r": 57,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 227.172,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50518,
    "c": 0.18051,
    "h": 267.8
  },
  "luminance": 0.12114
}

Semantic roles & 50–950 ramp

primary
#3958CA
secondary
#D0C28F
accent
#C047E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3958CA

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

Preview Lab → · Contrast checker → · Palette generator →

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