#3F308E#3F308E

#3F308E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.148 H 284.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#3F308E
RGBrgb(63, 48, 142)
HSLhsl(250, 49%, 37%)
HSVhsv(250, 66%, 56%)
CMYKcmyk(55.6%, 66.2%, 0%, 44.3%)
CIE-LABlab(27.08, 33.31, -50.04)
CIE-LCHlch(27.08, 60.12, 303.65°)
OKLaboklab(38.55% 0.0366 -0.1437)
OKLCHoklch(38.55% 0.148 284.3)
XYZxyz(7.9879, 5.1232, 26.1539)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F308E #7F8E30
analogous
#30508E #3F308E #6E308E
triadic
#3F308E #8E3F30 #308E3F
tetradic
#3F308E #8E3050 #7F8E30 #308E6E
square
#3F308E #8E3050 #7F8E30 #308E6E
split-complementary
#3F308E #8E6E30 #508E30
monochromatic
#161133 #2B2160 #3F308E #533FBC #7B6BCD

Accessibility & contrast

On white

10.37
#3F308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3F308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F308E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F308E#FFFFFF#000000##FFFFFF
##3F308E1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#1C475A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f308e;
/* rgb */ color: rgb(63, 48, 142);
/* oklch */ color: oklch(38.6% 0.148 284.3);
Tailwind
colors: {
  custom: {
    50: '#7c69b0',
    500: '#3f308e',
    950: '#000000',
  },
}
SCSS
$custom: #3f308e;
$custom-light: #7c69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f308e",
  "rgb": {
    "r": 63,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 249.574,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38553,
    "c": 0.14832,
    "h": 284.3
  },
  "luminance": 0.05124
}

Semantic roles & 50–950 ramp

primary
#3F308E
secondary
#A8B465
accent
#D94FC3
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3F308E

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

Preview Lab → · Contrast checker → · Palette generator →

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