#2F2D72#2F2D72

#2F2D72 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.2% C 0.116 H 279.7°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2F2D72
RGBrgb(47, 45, 114)
HSLhsl(242, 43%, 31%)
HSVhsv(242, 61%, 45%)
CMYKcmyk(58.8%, 60.5%, 0%, 55.3%)
CIE-LABlab(22.64, 22.62, -39.70)
CIE-LCHlch(22.64, 45.69, 299.67°)
OKLaboklab(34.23% 0.0194 -0.1139)
OKLCHoklch(34.23% 0.116 279.7)
XYZxyz(5.1470, 3.6957, 16.3584)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D72 #70722D
analogous
#2D4D72 #2F2D72 #512D72
triadic
#2F2D72 #722F2D #2D722F
tetradic
#2F2D72 #722D4D #70722D #2D7251
square
#2F2D72 #722D4D #70722D #2D7251
split-complementary
#2F2D72 #72512D #4D722D
monochromatic
#0B0A1A #1D1C46 #2F2D72 #413E9E #5E5BBE

Accessibility & contrast

On white

12.07
#2F2D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F2D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D72
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D72#FFFFFF#000000##FFFFFF
##2F2D721.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#0C3D4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2d72;
/* rgb */ color: rgb(47, 45, 114);
/* oklch */ color: oklch(34.2% 0.116 279.7);
Tailwind
colors: {
  custom: {
    50: '#6e669b',
    500: '#2f2d72',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d72;
$custom-light: #6e669b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d72",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 241.739,
    "s": 43.396,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34226,
    "c": 0.1155,
    "h": 279.7
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#2F2D72
secondary
#A1A357
accent
#D355CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2D72

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

Preview Lab → · Contrast checker → · Palette generator →

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