#2F3987#2F3987

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

Color values

HEX#2F3987
RGBrgb(47, 57, 135)
HSLhsl(233, 48%, 36%)
HSVhsv(233, 65%, 53%)
CMYKcmyk(65.2%, 57.8%, 0%, 47.1%)
CIE-LABlab(27.52, 22.08, -45.05)
CIE-LCHlch(27.52, 50.18, 296.11°)
OKLaboklab(38.37% 0.0071 -0.1295)
OKLCHoklch(38.37% 0.13 273.2)
XYZxyz(7.0071, 5.2793, 23.5667)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3987 #877D2F
analogous
#2F6587 #2F3987 #512F87
triadic
#2F3987 #872F39 #39872F
tetradic
#2F3987 #872F65 #877D2F #2F8751
square
#2F3987 #872F65 #877D2F #2F8751
split-complementary
#2F3987 #87512F #65872F
monochromatic
#0F132C #1F265A #2F3987 #3F4CB4 #6672CA

Accessibility & contrast

On white

10.21
#2F3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3987
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3987#FFFFFF#000000##FFFFFF
##2F39871.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f3987;
/* rgb */ color: rgb(47, 57, 135);
/* oklch */ color: oklch(38.4% 0.130 273.2);
Tailwind
colors: {
  custom: {
    50: '#726fab',
    500: '#2f3987',
    950: '#000000',
  },
}
SCSS
$custom: #2f3987;
$custom-light: #726fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3987",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 233.182,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38374,
    "c": 0.12968,
    "h": 273.2
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3987

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

Preview Lab → · Contrast checker → · Palette generator →

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