#2F137F#2F137F

#2F137F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.163 H 283.8°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2F137F
RGBrgb(47, 19, 127)
HSLhsl(256, 74%, 29%)
HSVhsv(256, 85%, 50%)
CMYKcmyk(63%, 85%, 0%, 50.2%)
CIE-LABlab(18.37, 42.07, -54.99)
CIE-LCHlch(18.37, 69.24, 307.42°)
OKLaboklab(31.55% 0.0389 -0.1585)
OKLCHoklch(31.55% 0.163 283.8)
XYZxyz(5.2347, 2.6020, 20.3010)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F137F #637F13
analogous
#132D7F #2F137F #65137F
triadic
#2F137F #7F2F13 #137F2F
tetradic
#2F137F #7F132D #637F13 #137F65
square
#2F137F #7F132D #637F13 #137F65
split-complementary
#2F137F #7F6513 #2D7F13
monochromatic
#0A041B #1B0B4A #2F137F #431BB4 #5B2DE0

Accessibility & contrast

On white

13.81
#2F137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F137F
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F137F#FFFFFF#000000##FFFFFF
##2F137F1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f137f;
/* rgb */ color: rgb(47, 19, 127);
/* oklch */ color: oklch(31.6% 0.163 283.8);
Tailwind
colors: {
  custom: {
    50: '#7356a5',
    500: '#2f137f',
    950: '#000000',
  },
}
SCSS
$custom: #2f137f;
$custom-light: #7356a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f137f",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 255.556,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31554,
    "c": 0.16325,
    "h": 283.8
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#2F137F
secondary
#95B439
accent
#F137C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F137F

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

Preview Lab → · Contrast checker → · Palette generator →

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