#2F2F54#2F2F54

#2F2F54 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.065 H 282.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2F2F54
RGBrgb(47, 47, 84)
HSLhsl(240, 28%, 26%)
HSVhsv(240, 44%, 33%)
CMYKcmyk(44%, 44%, 0%, 67.1%)
CIE-LABlab(21.12, 10.79, -22.53)
CIE-LCHlch(21.12, 24.98, 295.59°)
OKLaboklab(32.42% 0.0137 -0.0634)
OKLCHoklch(32.42% 0.065 282.2)
XYZxyz(3.7886, 3.2773, 8.8188)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F54 #54542F
analogous
#2F4154 #2F2F54 #412F54
triadic
#2F2F54 #542F2F #2F542F
tetradic
#2F2F54 #542F41 #54542F #2F5441
square
#2F2F54 #542F41 #54542F #2F5441
split-complementary
#2F2F54 #54412F #41542F
monochromatic
#0B0B14 #19192D #2F2F54 #45457B #5B5BA2

Accessibility & contrast

On white

12.69
#2F2F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F2F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F54
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F54#FFFFFF#000000##FFFFFF
##2F2F541.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223455
Deuteranopia (green-blind)
#203153
Tritanopia (blue-blind)
#24363D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2f54;
/* rgb */ color: rgb(47, 47, 84);
/* oklch */ color: oklch(32.4% 0.065 282.2);
Tailwind
colors: {
  custom: {
    50: '#696784',
    500: '#2f2f54',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f54;
$custom-light: #696784;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f54",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 84
  },
  "hsl": {
    "h": 240,
    "s": 28.244,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.0649,
    "h": 282.2
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#2F2F54
secondary
#858559
accent
#C563C5
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #2F2F54

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

Preview Lab → · Contrast checker → · Palette generator →

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