#2F117F#2F117F

#2F117F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.4% C 0.165 H 284.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2F117F
RGBrgb(47, 17, 127)
HSLhsl(256, 76%, 28%)
HSVhsv(256, 87%, 50%)
CMYKcmyk(63%, 86.6%, 0%, 50.2%)
CIE-LABlab(18.09, 42.92, -55.47)
CIE-LCHlch(18.09, 70.13, 307.73°)
OKLaboklab(31.36% 0.0399 -0.1599)
OKLCHoklch(31.36% 0.165 284)
XYZxyz(5.2023, 2.5372, 20.2901)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F117F #617F11
analogous
#112A7F #2F117F #66117F
triadic
#2F117F #7F2F11 #117F2F
tetradic
#2F117F #7F112A #617F11 #117F66
square
#2F117F #7F112A #617F11 #117F66
split-complementary
#2F117F #7F6611 #2A7F11
monochromatic
#0A041B #1B0A49 #2F117F #4318B5 #5B28E2

Accessibility & contrast

On white

13.93
#2F117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F117F
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F117F#FFFFFF#000000##FFFFFF
##2F117F1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f117f;
/* rgb */ color: rgb(47, 17, 127);
/* oklch */ color: oklch(31.4% 0.165 284.0);
Tailwind
colors: {
  custom: {
    50: '#7355a5',
    500: '#2f117f',
    950: '#000000',
  },
}
SCSS
$custom: #2f117f;
$custom-light: #7355a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f117f",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 256.364,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31356,
    "c": 0.16481,
    "h": 284
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#2F117F
secondary
#93B537
accent
#F335BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F117F

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

Preview Lab → · Contrast checker → · Palette generator →

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