#2F294C#2F294C

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

Color values

HEX#2F294C
RGBrgb(47, 41, 76)
HSLhsl(250, 30%, 23%)
HSVhsv(250, 46%, 30%)
CMYKcmyk(38.2%, 46.1%, 0%, 70.2%)
CIE-LABlab(18.85, 12.39, -20.74)
CIE-LCHlch(18.85, 24.16, 300.85°)
OKLaboklab(30.53% 0.0213 -0.0582)
OKLCHoklch(30.53% 0.062 290.1)
XYZxyz(3.2694, 2.7119, 7.1873)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F294C #464C29
analogous
#29344C #2F294C #40294C
triadic
#2F294C #4C2F29 #294C2F
tetradic
#2F294C #4C2934 #464C29 #294C40
square
#2F294C #4C2934 #464C29 #294C40
split-complementary
#2F294C #4C4029 #344C29
monochromatic
#0C0B14 #161424 #2F294C #483E74 #60549C

Accessibility & contrast

On white

13.62
#2F294C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F294C
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F294C#FFFFFF#000000##FFFFFF
##2F294C1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2E4D
Deuteranopia (green-blind)
#1E2D4B
Tritanopia (blue-blind)
#283036
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f294c;
/* rgb */ color: rgb(47, 41, 76);
/* oklch */ color: oklch(30.5% 0.062 290.1);
Tailwind
colors: {
  custom: {
    50: '#69627e',
    500: '#2f294c',
    950: '#000000',
  },
}
SCSS
$custom: #2f294c;
$custom-light: #69627e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f294c",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 76
  },
  "hsl": {
    "h": 250.286,
    "s": 29.915,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30533,
    "c": 0.06202,
    "h": 290.1
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#2F294C
secondary
#777E53
accent
#C662B5
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F294C

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

Preview Lab → · Contrast checker → · Palette generator →

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