#2F3571#2F3571

#2F3571 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.102 H 275.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2F3571
RGBrgb(47, 53, 113)
HSLhsl(235, 41%, 31%)
HSVhsv(235, 58%, 44%)
CMYKcmyk(58.4%, 53.1%, 0%, 55.7%)
CIE-LABlab(24.77, 16.77, -35.62)
CIE-LCHlch(24.77, 39.37, 295.21°)
OKLaboklab(35.8% 0.0101 -0.1018)
OKLCHoklch(35.8% 0.102 275.7)
XYZxyz(5.4251, 4.3424, 16.1719)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3571 #716B2F
analogous
#2F5671 #2F3571 #4A2F71
triadic
#2F3571 #712F35 #35712F
tetradic
#2F3571 #712F56 #716B2F #2F714A
square
#2F3571 #712F56 #716B2F #2F714A
split-complementary
#2F3571 #714A2F #56712F
monochromatic
#0B0C1B #1D2146 #2F3571 #41499C #5E67BC

Accessibility & contrast

On white

11.24
#2F3571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F3571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3571
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3571#FFFFFF#000000##FFFFFF
##2F35711.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#0B3870
Tritanopia (blue-blind)
#0B424D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3571;
/* rgb */ color: rgb(47, 53, 113);
/* oklch */ color: oklch(35.8% 0.102 275.7);
Tailwind
colors: {
  custom: {
    50: '#6e6c9a',
    500: '#2f3571',
    950: '#000000',
  },
}
SCSS
$custom: #2f3571;
$custom-light: #6e6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3571",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 113
  },
  "hsl": {
    "h": 234.545,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35797,
    "c": 0.10227,
    "h": 275.7
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#2F3571
secondary
#A29C5A
accent
#C657D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2F3571

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

Preview Lab → · Contrast checker → · Palette generator →

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