#2F3784#2F3784

#2F3784 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.128 H 274.0°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2F3784
RGBrgb(47, 55, 132)
HSLhsl(234, 47%, 35%)
HSVhsv(234, 64%, 52%)
CMYKcmyk(64.4%, 58.3%, 0%, 48.2%)
CIE-LABlab(26.74, 22.34, -44.44)
CIE-LCHlch(26.74, 49.74, 296.69°)
OKLaboklab(37.72% 0.009 -0.1277)
OKLCHoklch(37.72% 0.128 274)
XYZxyz(6.7020, 5.0021, 22.4376)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3784 #847C2F
analogous
#2F6184 #2F3784 #512F84
triadic
#2F3784 #842F37 #37842F
tetradic
#2F3784 #842F61 #847C2F #2F8451
square
#2F3784 #842F61 #847C2F #2F8451
split-complementary
#2F3784 #84512F #61842F
monochromatic
#0F112A #1F2457 #2F3784 #3F4AB1 #656EC8

Accessibility & contrast

On white

10.50
#2F3784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F3784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3784
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3784#FFFFFF#000000##FFFFFF
##2F37841.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3784;
/* rgb */ color: rgb(47, 55, 132);
/* oklch */ color: oklch(37.7% 0.128 274.0);
Tailwind
colors: {
  custom: {
    50: '#716da8',
    500: '#2f3784',
    950: '#000000',
  },
}
SCSS
$custom: #2f3784;
$custom-light: #716da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3784",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 132
  },
  "hsl": {
    "h": 234.353,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37722,
    "c": 0.12802,
    "h": 274
  },
  "luminance": 0.05003
}

Semantic roles & 50–950 ramp

primary
#2F3784
secondary
#AFA860
accent
#CA51D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3784

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

Preview Lab → · Contrast checker → · Palette generator →

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