#2F134F#2F134F

#2F134F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.104 H 300.8°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2F134F
RGBrgb(47, 19, 79)
HSLhsl(268, 61%, 19%)
HSVhsv(268, 76%, 31%)
CMYKcmyk(40.5%, 75.9%, 0%, 69%)
CIE-LABlab(13.44, 27.82, -31.45)
CIE-LCHlch(13.44, 41.99, 311.49°)
OKLaboklab(26.61% 0.0535 -0.0896)
OKLCHoklch(26.61% 0.104 300.8)
XYZxyz(2.8161, 1.6346, 7.5628)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F134F #334F13
analogous
#13154F #2F134F #4D134F
triadic
#2F134F #4F2F13 #134F2F
tetradic
#2F134F #4F1315 #334F13 #134F4D
square
#2F134F #4F1315 #334F13 #134F4D
split-complementary
#2F134F #4F4D13 #154F13
monochromatic
#0F0619 #12071E #2F134F #4C1F80 #6A2BB2

Accessibility & contrast

On white

15.83
#2F134F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F134F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F134F
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F134F#FFFFFF#000000##FFFFFF
##2F134F1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#28212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f134f;
/* rgb */ color: rgb(47, 19, 79);
/* oklch */ color: oklch(26.6% 0.104 300.8);
Tailwind
colors: {
  custom: {
    50: '#6b5381',
    500: '#2f134f',
    950: '#000000',
  },
}
SCSS
$custom: #2f134f;
$custom-light: #6b5381;
$custom-dark: #000000;
JSON
{
  "hex": "#2f134f",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 79
  },
  "hsl": {
    "h": 268,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26607,
    "c": 0.10437,
    "h": 300.8
  },
  "luminance": 0.01635
}

Semantic roles & 50–950 ramp

primary
#2F134F
secondary
#628836
accent
#E44399
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F134F

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

Preview Lab → · Contrast checker → · Palette generator →

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