#2F117E#2F117E

#2F117E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.164 H 284.3°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2F117E
RGBrgb(47, 17, 126)
HSLhsl(257, 76%, 28%)
HSVhsv(257, 87%, 49%)
CMYKcmyk(62.7%, 86.5%, 0%, 50.6%)
CIE-LABlab(17.97, 42.63, -55.02)
CIE-LCHlch(17.97, 69.60, 307.77°)
OKLaboklab(31.24% 0.0403 -0.1586)
OKLCHoklch(31.24% 0.164 284.3)
XYZxyz(5.1375, 2.5113, 19.9486)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F117E #607E11
analogous
#11297E #2F117E #65117E
triadic
#2F117E #7E2F11 #117E2F
tetradic
#2F117E #7E1129 #607E11 #117E65
square
#2F117E #7E1129 #607E11 #117E65
split-complementary
#2F117E #7E6511 #297E11
monochromatic
#0A041B #1B0A48 #2F117E #4318B4 #5B27E2

Accessibility & contrast

On white

13.98
#2F117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F117E
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F117E#FFFFFF#000000##FFFFFF
##2F117E1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f117e;
/* rgb */ color: rgb(47, 17, 126);
/* oklch */ color: oklch(31.2% 0.164 284.3);
Tailwind
colors: {
  custom: {
    50: '#7355a5',
    500: '#2f117e',
    950: '#000000',
  },
}
SCSS
$custom: #2f117e;
$custom-light: #7355a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f117e",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 256.514,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31242,
    "c": 0.16366,
    "h": 284.3
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2F117E
secondary
#92B437
accent
#F335BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F117E

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

Preview Lab → · Contrast checker → · Palette generator →

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