#2F3687#2F3687

#2F3687 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.134 H 274.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2F3687
RGBrgb(47, 54, 135)
HSLhsl(235, 48%, 36%)
HSVhsv(235, 65%, 53%)
CMYKcmyk(65.2%, 60%, 0%, 47.1%)
CIE-LABlab(26.71, 24.11, -46.36)
CIE-LCHlch(26.71, 52.26, 297.48°)
OKLaboklab(37.77% 0.0101 -0.1334)
OKLCHoklch(37.77% 0.134 274.3)
XYZxyz(6.8632, 4.9914, 23.5187)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3687 #87802F
analogous
#2F6287 #2F3687 #542F87
triadic
#2F3687 #872F36 #36872F
tetradic
#2F3687 #872F62 #87802F #2F8754
square
#2F3687 #872F62 #87802F #2F8754
split-complementary
#2F3687 #87542F #62872F
monochromatic
#0F122C #1F245A #2F3687 #3F48B4 #666ECA

Accessibility & contrast

On white

10.51
#2F3687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3687
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3687#FFFFFF#000000##FFFFFF
##2F36871.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3687;
/* rgb */ color: rgb(47, 54, 135);
/* oklch */ color: oklch(37.8% 0.134 274.3);
Tailwind
colors: {
  custom: {
    50: '#726dab',
    500: '#2f3687',
    950: '#000000',
  },
}
SCSS
$custom: #2f3687;
$custom-light: #726dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3687",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 135
  },
  "hsl": {
    "h": 235.227,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.13374,
    "h": 274.3
  },
  "luminance": 0.04992
}

Semantic roles & 50–950 ramp

primary
#2F3687
secondary
#B1AB61
accent
#CD50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3687

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

Preview Lab → · Contrast checker → · Palette generator →

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