#2F3984#2F3984

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

Color values

HEX#2F3984
RGBrgb(47, 57, 132)
HSLhsl(233, 47%, 35%)
HSVhsv(233, 64%, 52%)
CMYKcmyk(64.4%, 56.8%, 0%, 48.2%)
CIE-LABlab(27.29, 20.98, -43.56)
CIE-LCHlch(27.29, 48.35, 295.72°)
OKLaboklab(38.13% 0.007 -0.1251)
OKLCHoklch(38.13% 0.125 273.2)
XYZxyz(6.7989, 5.1960, 22.4700)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3984 #847A2F
analogous
#2F6484 #2F3984 #4F2F84
triadic
#2F3984 #842F39 #39842F
tetradic
#2F3984 #842F64 #847A2F #2F844F
square
#2F3984 #842F64 #847A2F #2F844F
split-complementary
#2F3984 #844F2F #64842F
monochromatic
#0F122A #1F2657 #2F3984 #3F4CB1 #6571C8

Accessibility & contrast

On white

10.30
#2F3984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F3984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3984
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3984#FFFFFF#000000##FFFFFF
##2F39841.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004487
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3984;
/* rgb */ color: rgb(47, 57, 132);
/* oklch */ color: oklch(38.1% 0.125 273.2);
Tailwind
colors: {
  custom: {
    50: '#716fa8',
    500: '#2f3984',
    950: '#000000',
  },
}
SCSS
$custom: #2f3984;
$custom-light: #716fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3984",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 132
  },
  "hsl": {
    "h": 232.941,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38129,
    "c": 0.12528,
    "h": 273.2
  },
  "luminance": 0.05197
}

Semantic roles & 50–950 ramp

primary
#2F3984
secondary
#AFA660
accent
#C751D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3984

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

Preview Lab → · Contrast checker → · Palette generator →

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