#2F244A#2F244A

#2F244A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.3% C 0.068 H 295.2°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#2F244A
RGBrgb(47, 36, 74)
HSLhsl(257, 35%, 22%)
HSVhsv(257, 51%, 29%)
CMYKcmyk(36.5%, 51.4%, 0%, 71%)
CIE-LABlab(17.28, 15.27, -21.87)
CIE-LCHlch(17.28, 26.67, 304.91°)
OKLaboklab(29.3% 0.029 -0.0615)
OKLCHoklch(29.3% 0.068 295.2)
XYZxyz(3.0389, 2.3605, 6.7727)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F244A #3F4A24
analogous
#242C4A #2F244A #42244A
triadic
#2F244A #4A2F24 #244A2F
tetradic
#2F244A #4A242C #3F4A24 #244A42
square
#2F244A #4A242C #3F4A24 #244A42
split-complementary
#2F244A #4A4224 #2C4A24
monochromatic
#0D0A15 #151021 #2F244A #493873 #634C9C

Accessibility & contrast

On white

14.26
#2F244A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F244A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F244A
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F244A#FFFFFF#000000##FFFFFF
##2F244A1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182B4B
Deuteranopia (green-blind)
#192A49
Tritanopia (blue-blind)
#292B33
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f244a;
/* rgb */ color: rgb(47, 36, 74);
/* oklch */ color: oklch(29.3% 0.068 295.2);
Tailwind
colors: {
  custom: {
    50: '#695e7d',
    500: '#2f244a',
    950: '#000000',
  },
}
SCSS
$custom: #2f244a;
$custom-light: #695e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f244a",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 74
  },
  "hsl": {
    "h": 257.368,
    "s": 34.545,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29303,
    "c": 0.06802,
    "h": 295.2
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#2F244A
secondary
#6F7D4D
accent
#CB5DAB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F244A

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

Preview Lab → · Contrast checker → · Palette generator →

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