#2F3771#2F3771

#2F3771 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.099 H 274.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2F3771
RGBrgb(47, 55, 113)
HSLhsl(233, 41%, 31%)
HSVhsv(233, 58%, 44%)
CMYKcmyk(58.4%, 51.3%, 0%, 55.7%)
CIE-LABlab(25.35, 15.39, -34.70)
CIE-LCHlch(25.35, 37.95, 293.92°)
OKLaboklab(36.23% 0.0077 -0.099)
OKLCHoklch(36.23% 0.099 274.4)
XYZxyz(5.5182, 4.5286, 16.2029)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3771 #71692F
analogous
#2F5871 #2F3771 #482F71
triadic
#2F3771 #712F37 #37712F
tetradic
#2F3771 #712F58 #71692F #2F7148
square
#2F3771 #712F58 #71692F #2F7148
split-complementary
#2F3771 #71482F #58712F
monochromatic
#0B0D1B #1D2246 #2F3771 #414C9C #5E6ABC

Accessibility & contrast

On white

11.02
#2F3771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F3771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3771
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3771#FFFFFF#000000##FFFFFF
##2F37711.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3F73
Deuteranopia (green-blind)
#113970
Tritanopia (blue-blind)
#0B444E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f3771;
/* rgb */ color: rgb(47, 55, 113);
/* oklch */ color: oklch(36.2% 0.099 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e6d9a',
    500: '#2f3771',
    950: '#000000',
  },
}
SCSS
$custom: #2f3771;
$custom-light: #6e6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3771",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 232.727,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36231,
    "c": 0.09933,
    "h": 274.4
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#2F3771
secondary
#A2995A
accent
#C257D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2F3771

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

Preview Lab → · Contrast checker → · Palette generator →

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