#2F294A#2F294A

#2F294A is a dark, muted violet. Relative luminance 0.027; OKLCH L 30.4% C 0.059 H 290.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2F294A
RGBrgb(47, 41, 74)
HSLhsl(251, 29%, 23%)
HSVhsv(251, 45%, 29%)
CMYKcmyk(36.5%, 44.6%, 0%, 71%)
CIE-LABlab(18.73, 11.75, -19.57)
CIE-LCHlch(18.73, 22.83, 300.99°)
OKLaboklab(30.41% 0.0209 -0.0548)
OKLCHoklch(30.41% 0.059 290.8)
XYZxyz(3.2009, 2.6846, 6.8268)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F294A #444A29
analogous
#29334A #2F294A #3F294A
triadic
#2F294A #4A2F29 #294A2F
tetradic
#2F294A #4A2933 #444A29 #294A3F
square
#2F294A #4A2933 #444A29 #294A3F
split-complementary
#2F294A #4A3F29 #334A29
monochromatic
#0D0B14 #161323 #2F294A #483F71 #615599

Accessibility & contrast

On white

13.66
#2F294A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F294A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F294A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F294A#FFFFFF#000000##FFFFFF
##2F294A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2E4B
Deuteranopia (green-blind)
#1F2D49
Tritanopia (blue-blind)
#292F36
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f294a;
/* rgb */ color: rgb(47, 41, 74);
/* oklch */ color: oklch(30.4% 0.059 290.8);
Tailwind
colors: {
  custom: {
    50: '#69627c',
    500: '#2f294a',
    950: '#000000',
  },
}
SCSS
$custom: #2f294a;
$custom-light: #69627c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f294a",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 74
  },
  "hsl": {
    "h": 250.909,
    "s": 28.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30406,
    "c": 0.05867,
    "h": 290.8
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#2F294A
secondary
#757C53
accent
#C563B3
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#060509
muted
#7A797B

Preview Lab

Preview with #2F294A

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

Preview Lab → · Contrast checker → · Palette generator →

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