#2F3587#2F3587

#2F3587 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.135 H 274.7°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2F3587
RGBrgb(47, 53, 135)
HSLhsl(236, 48%, 36%)
HSVhsv(236, 65%, 53%)
CMYKcmyk(65.2%, 60.7%, 0%, 47.1%)
CIE-LABlab(26.45, 24.79, -46.79)
CIE-LCHlch(26.45, 52.95, 297.91°)
OKLaboklab(37.58% 0.011 -0.1346)
OKLCHoklch(37.58% 0.135 274.7)
XYZxyz(6.8171, 4.8992, 23.5034)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3587 #87812F
analogous
#2F6187 #2F3587 #552F87
triadic
#2F3587 #872F35 #35872F
tetradic
#2F3587 #872F61 #87812F #2F8755
square
#2F3587 #872F61 #87812F #2F8755
split-complementary
#2F3587 #87552F #61872F
monochromatic
#0F112C #1F235A #2F3587 #3F47B4 #666DCA

Accessibility & contrast

On white

10.61
#2F3587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F3587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3587
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3587#FFFFFF#000000##FFFFFF
##2F35871.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3587;
/* rgb */ color: rgb(47, 53, 135);
/* oklch */ color: oklch(37.6% 0.135 274.7);
Tailwind
colors: {
  custom: {
    50: '#726cab',
    500: '#2f3587',
    950: '#000000',
  },
}
SCSS
$custom: #2f3587;
$custom-light: #726cab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3587",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 135
  },
  "hsl": {
    "h": 235.909,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37578,
    "c": 0.13508,
    "h": 274.7
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3587

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

Preview Lab → · Contrast checker → · Palette generator →

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