#2F3871#2F3871

#2F3871 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.098 H 273.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2F3871
RGBrgb(47, 56, 113)
HSLhsl(232, 41%, 31%)
HSVhsv(232, 58%, 44%)
CMYKcmyk(58.4%, 50.4%, 0%, 55.7%)
CIE-LABlab(25.64, 14.70, -34.23)
CIE-LCHlch(25.64, 37.25, 293.24°)
OKLaboklab(36.45% 0.0065 -0.0976)
OKLCHoklch(36.45% 0.098 273.8)
XYZxyz(5.5661, 4.6245, 16.2189)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3871 #71682F
analogous
#2F5971 #2F3871 #472F71
triadic
#2F3871 #712F38 #38712F
tetradic
#2F3871 #712F59 #71682F #2F7147
square
#2F3871 #712F59 #71682F #2F7147
split-complementary
#2F3871 #71472F #59712F
monochromatic
#0B0D1B #1D2346 #2F3871 #414D9C #5E6BBC

Accessibility & contrast

On white

10.91
#2F3871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F3871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3871
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3871#FFFFFF#000000##FFFFFF
##2F38711.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#143A70
Tritanopia (blue-blind)
#0A454F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f3871;
/* rgb */ color: rgb(47, 56, 113);
/* oklch */ color: oklch(36.5% 0.098 273.8);
Tailwind
colors: {
  custom: {
    50: '#6d6e9a',
    500: '#2f3871',
    950: '#000000',
  },
}
SCSS
$custom: #2f3871;
$custom-light: #6d6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3871",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 231.818,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36451,
    "c": 0.09786,
    "h": 273.8
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#2F3871
secondary
#A2985A
accent
#C057D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2F3871

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

Preview Lab → · Contrast checker → · Palette generator →

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