#3F38B2#3F38B2

#3F38B2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.1% C 0.186 H 277.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#3F38B2
RGBrgb(63, 56, 178)
HSLhsl(243, 52%, 46%)
HSVhsv(243, 69%, 70%)
CMYKcmyk(64.6%, 68.5%, 0%, 30.2%)
CIE-LABlab(32.03, 40.25, -63.78)
CIE-LCHlch(32.03, 75.42, 302.26°)
OKLaboklab(43.1% 0.0251 -0.184)
OKLCHoklch(43.1% 0.186 277.8)
XYZxyz(11.4974, 7.0985, 42.8751)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F38B2 #ABB238
analogous
#386EB2 #3F38B2 #7C38B2
triadic
#3F38B2 #B23F38 #38B23F
tetradic
#3F38B2 #B2386E #ABB238 #38B27C
square
#3F38B2 #B2386E #ABB238 #38B27C
split-complementary
#3F38B2 #B27C38 #6EB238
monochromatic
#1E1B55 #2F2983 #3F38B2 #625CCC #8F8ADA

Accessibility & contrast

On white

8.68
#3F38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3F38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F38B2
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F38B2#FFFFFF#000000##FFFFFF
##3F38B21.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3f38b2;
/* rgb */ color: rgb(63, 56, 178);
/* oklch */ color: oklch(43.1% 0.186 277.8);
Tailwind
colors: {
  custom: {
    50: '#8270ca',
    500: '#3f38b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f38b2;
$custom-light: #8270ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f38b2",
  "rgb": {
    "r": 63,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 243.443,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43103,
    "c": 0.18571,
    "h": 277.8
  },
  "luminance": 0.07099
}

Semantic roles & 50–950 ramp

primary
#3F38B2
secondary
#C1C581
accent
#DC4CD3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3F38B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3F38B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva