#2F134B#2F134B

#2F134B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.099 H 303.1°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#2F134B
RGBrgb(47, 19, 75)
HSLhsl(270, 60%, 18%)
HSVhsv(270, 75%, 29%)
CMYKcmyk(37.3%, 74.7%, 0%, 70.6%)
CIE-LABlab(13.10, 26.67, -29.26)
CIE-LCHlch(13.10, 39.59, 312.35°)
OKLaboklab(26.25% 0.0541 -0.0832)
OKLCHoklch(26.25% 0.099 303.1)
XYZxyz(2.6749, 1.5781, 6.8189)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F134B #2F4B13
analogous
#13134B #2F134B #4B134B
triadic
#2F134B #4B2F13 #134B2F
tetradic
#2F134B #4B1313 #2F4B13 #134B4B
square
#2F134B #4B1313 #2F4B13 #134B4B
split-complementary
#2F134B #4B4B13 #134B13
monochromatic
#0F0618 #10071A #2F134B #4E1F7C #6C2CAD

Accessibility & contrast

On white

15.96
#2F134B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F134B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F134B
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F134B#FFFFFF#000000##FFFFFF
##2F134B1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#00224A
Tritanopia (blue-blind)
#29202D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f134b;
/* rgb */ color: rgb(47, 19, 75);
/* oklch */ color: oklch(26.3% 0.099 303.1);
Tailwind
colors: {
  custom: {
    50: '#6a537e',
    500: '#2f134b',
    950: '#000000',
  },
}
SCSS
$custom: #2f134b;
$custom-light: #6a537e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f134b",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 75
  },
  "hsl": {
    "h": 270,
    "s": 59.574,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26254,
    "c": 0.09923,
    "h": 303.1
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#2F134B
secondary
#5D8436
accent
#E34594
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F134B

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

Preview Lab → · Contrast checker → · Palette generator →

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