#2F294B#2F294B

#2F294B is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.5% C 0.060 H 290.5°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2F294B
RGBrgb(47, 41, 75)
HSLhsl(251, 29%, 23%)
HSVhsv(251, 45%, 29%)
CMYKcmyk(37.3%, 45.3%, 0%, 70.6%)
CIE-LABlab(18.79, 12.07, -20.16)
CIE-LCHlch(18.79, 23.49, 300.92°)
OKLaboklab(30.47% 0.0211 -0.0565)
OKLCHoklch(30.47% 0.06 290.5)
XYZxyz(3.2349, 2.6981, 7.0056)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F294B #454B29
analogous
#29344B #2F294B #40294B
triadic
#2F294B #4B2F29 #294B2F
tetradic
#2F294B #4B2934 #454B29 #294B40
square
#2F294B #4B2934 #454B29 #294B40
split-complementary
#2F294B #4B4029 #344B29
monochromatic
#0C0B14 #161323 #2F294B #483F73 #61549A

Accessibility & contrast

On white

13.64
#2F294B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F294B
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F294B#FFFFFF#000000##FFFFFF
##2F294B1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2E4C
Deuteranopia (green-blind)
#1F2D4A
Tritanopia (blue-blind)
#282F36
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f294b;
/* rgb */ color: rgb(47, 41, 75);
/* oklch */ color: oklch(30.5% 0.060 290.5);
Tailwind
colors: {
  custom: {
    50: '#69627d',
    500: '#2f294b',
    950: '#000000',
  },
}
SCSS
$custom: #2f294b;
$custom-light: #69627d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f294b",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 75
  },
  "hsl": {
    "h": 250.588,
    "s": 29.31,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30469,
    "c": 0.06035,
    "h": 290.5
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#2F294B
secondary
#767D53
accent
#C662B4
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#060509
muted
#7A797B

Preview Lab

Preview with #2F294B

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

Preview Lab → · Contrast checker → · Palette generator →

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