#2F3886#2F3886

#2F3886 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.130 H 273.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2F3886
RGBrgb(47, 56, 134)
HSLhsl(234, 48%, 35%)
HSVhsv(234, 65%, 53%)
CMYKcmyk(64.9%, 58.2%, 0%, 47.5%)
CIE-LABlab(27.17, 22.40, -45.00)
CIE-LCHlch(27.17, 50.26, 296.46°)
OKLaboklab(38.09% 0.0081 -0.1293)
OKLCHoklch(38.09% 0.13 273.6)
XYZxyz(6.8881, 5.1533, 23.1813)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3886 #867D2F
analogous
#2F6386 #2F3886 #512F86
triadic
#2F3886 #862F38 #38862F
tetradic
#2F3886 #862F63 #867D2F #2F8651
square
#2F3886 #862F63 #867D2F #2F8651
split-complementary
#2F3886 #86512F #63862F
monochromatic
#0F122B #1F2559 #2F3886 #3F4BB3 #6670C9

Accessibility & contrast

On white

10.34
#2F3886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F3886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3886
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3886#FFFFFF#000000##FFFFFF
##2F38861.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3886;
/* rgb */ color: rgb(47, 56, 134);
/* oklch */ color: oklch(38.1% 0.130 273.6);
Tailwind
colors: {
  custom: {
    50: '#726eaa',
    500: '#2f3886',
    950: '#000000',
  },
}
SCSS
$custom: #2f3886;
$custom-light: #726eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3886",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 134
  },
  "hsl": {
    "h": 233.793,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3809,
    "c": 0.12957,
    "h": 273.6
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#2F3886
secondary
#B0A860
accent
#CA50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3886

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

Preview Lab → · Contrast checker → · Palette generator →

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