#2F3986#2F3986

#2F3986 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.128 H 273.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2F3986
RGBrgb(47, 57, 134)
HSLhsl(233, 48%, 35%)
HSVhsv(233, 65%, 53%)
CMYKcmyk(64.9%, 57.5%, 0%, 47.5%)
CIE-LABlab(27.44, 21.72, -44.56)
CIE-LCHlch(27.44, 49.57, 295.99°)
OKLaboklab(38.29% 0.0071 -0.128)
OKLCHoklch(38.29% 0.128 273.2)
XYZxyz(6.9371, 5.2512, 23.1977)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3986 #867C2F
analogous
#2F6586 #2F3986 #502F86
triadic
#2F3986 #862F39 #39862F
tetradic
#2F3986 #862F65 #867C2F #2F8650
square
#2F3986 #862F65 #867C2F #2F8650
split-complementary
#2F3986 #86502F #65862F
monochromatic
#0F122B #1F2659 #2F3986 #3F4CB3 #6671C9

Accessibility & contrast

On white

10.24
#2F3986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F3986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3986
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3986#FFFFFF#000000##FFFFFF
##2F39861.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3986;
/* rgb */ color: rgb(47, 57, 134);
/* oklch */ color: oklch(38.3% 0.128 273.2);
Tailwind
colors: {
  custom: {
    50: '#726faa',
    500: '#2f3986',
    950: '#000000',
  },
}
SCSS
$custom: #2f3986;
$custom-light: #726faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3986",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 233.103,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38292,
    "c": 0.12822,
    "h": 273.2
  },
  "luminance": 0.05252
}

Semantic roles & 50–950 ramp

primary
#2F3986
secondary
#B0A760
accent
#C850D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3986

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

Preview Lab → · Contrast checker → · Palette generator →

#2F3986 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva