#3F45A5#3F45A5

#3F45A5 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.152 H 275.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#3F45A5
RGBrgb(63, 69, 165)
HSLhsl(236, 45%, 45%)
HSVhsv(236, 62%, 65%)
CMYKcmyk(61.8%, 58.2%, 0%, 35.3%)
CIE-LABlab(34.04, 27.72, -52.73)
CIE-LCHlch(34.04, 59.57, 297.73°)
OKLaboklab(44.24% 0.0147 -0.1515)
OKLCHoklch(44.24% 0.152 275.6)
XYZxyz(10.9673, 8.0288, 36.5618)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F45A5 #A59F3F
analogous
#3F78A5 #3F45A5 #6C3FA5
triadic
#3F45A5 #A53F45 #45A53F
tetradic
#3F45A5 #A53F78 #A59F3F #3FA56C
square
#3F45A5 #A53F78 #A59F3F #3FA56C
split-complementary
#3F45A5 #A56C3F #78A53F
monochromatic
#1D204C #2E3279 #3F45A5 #5F65C2 #8C90D3

Accessibility & contrast

On white

8.06
#3F45A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3F45A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F45A5
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F45A5#FFFFFF#000000##FFFFFF
##3F45A51.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3f45a5;
/* rgb */ color: rgb(63, 69, 165);
/* oklch */ color: oklch(44.2% 0.152 275.6);
Tailwind
colors: {
  custom: {
    50: '#7f78c0',
    500: '#3f45a5',
    950: '#000000',
  },
}
SCSS
$custom: #3f45a5;
$custom-light: #7f78c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f45a5",
  "rgb": {
    "r": 63,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 236.471,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44242,
    "c": 0.15223,
    "h": 275.6
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#3F45A5
secondary
#BEBA82
accent
#CD53D4
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #3F45A5

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

Preview Lab → · Contrast checker → · Palette generator →

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