#2F2C71#2F2C71

#2F2C71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.115 H 280.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2F2C71
RGBrgb(47, 44, 113)
HSLhsl(243, 44%, 31%)
HSVhsv(243, 61%, 44%)
CMYKcmyk(58.4%, 61.1%, 0%, 55.7%)
CIE-LABlab(22.29, 22.94, -39.62)
CIE-LCHlch(22.29, 45.78, 300.07°)
OKLaboklab(33.95% 0.0205 -0.1136)
OKLCHoklch(33.95% 0.115 280.2)
XYZxyz(5.0527, 3.5976, 16.0477)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C71 #6E712C
analogous
#2C4B71 #2F2C71 #512C71
triadic
#2F2C71 #712F2C #2C712F
tetradic
#2F2C71 #712C4B #6E712C #2C7151
square
#2F2C71 #712C4B #6E712C #2C7151
split-complementary
#2F2C71 #71512C #4B712C
monochromatic
#0A0A19 #1D1B45 #2F2C71 #413D9D #5D59BE

Accessibility & contrast

On white

12.21
#2F2C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F2C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C71
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C71#FFFFFF#000000##FFFFFF
##2F2C711.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#0E3C4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2c71;
/* rgb */ color: rgb(47, 44, 113);
/* oklch */ color: oklch(33.9% 0.115 280.2);
Tailwind
colors: {
  custom: {
    50: '#6e659a',
    500: '#2f2c71',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c71;
$custom-light: #6e659a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c71",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 242.609,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33946,
    "c": 0.11546,
    "h": 280.2
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#2F2C71
secondary
#9FA356
accent
#D454CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2F2C71

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

Preview Lab → · Contrast checker → · Palette generator →

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