#2F137E#2F137E

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

Color values

HEX#2F137E
RGBrgb(47, 19, 126)
HSLhsl(256, 74%, 28%)
HSVhsv(256, 85%, 49%)
CMYKcmyk(62.7%, 84.9%, 0%, 50.6%)
CIE-LABlab(18.26, 41.78, -54.54)
CIE-LCHlch(18.26, 68.70, 307.45°)
OKLaboklab(31.44% 0.0393 -0.1572)
OKLCHoklch(31.44% 0.162 284)
XYZxyz(5.1699, 2.5761, 19.9594)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F137E #627E13
analogous
#132C7E #2F137E #64137E
triadic
#2F137E #7E2F13 #137E2F
tetradic
#2F137E #7E132C #627E13 #137E64
square
#2F137E #7E132C #627E13 #137E64
split-complementary
#2F137E #7E6413 #2C7E13
monochromatic
#0A041B #1B0B49 #2F137E #431BB3 #5B2CDF

Accessibility & contrast

On white

13.86
#2F137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F137E
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F137E#FFFFFF#000000##FFFFFF
##2F137E1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f137e;
/* rgb */ color: rgb(47, 19, 126);
/* oklch */ color: oklch(31.4% 0.162 284.0);
Tailwind
colors: {
  custom: {
    50: '#7356a5',
    500: '#2f137e',
    950: '#000000',
  },
}
SCSS
$custom: #2f137e;
$custom-light: #7356a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f137e",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 255.701,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31441,
    "c": 0.16207,
    "h": 284
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#2F137E
secondary
#94B439
accent
#F037C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F137E

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

Preview Lab → · Contrast checker → · Palette generator →

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