#2F137B#2F137B

#2F137B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.159 H 284.7°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2F137B
RGBrgb(47, 19, 123)
HSLhsl(256, 73%, 28%)
HSVhsv(256, 85%, 48%)
CMYKcmyk(61.8%, 84.6%, 0%, 51.8%)
CIE-LABlab(17.92, 40.89, -53.20)
CIE-LCHlch(17.92, 67.10, 307.55°)
OKLaboklab(31.11% 0.0403 -0.1533)
OKLCHoklch(31.11% 0.159 284.7)
XYZxyz(4.9792, 2.4998, 18.9552)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F137B #5F7B13
analogous
#132B7B #2F137B #63137B
triadic
#2F137B #7B2F13 #137B2F
tetradic
#2F137B #7B132B #5F7B13 #137B63
square
#2F137B #7B132B #5F7B13 #137B63
split-complementary
#2F137B #7B6313 #2B7B13
monochromatic
#0A041B #1B0B46 #2F137B #431BB0 #5B2ADE

Accessibility & contrast

On white

14.00
#2F137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F137B
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F137B#FFFFFF#000000##FFFFFF
##2F137B1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f137b;
/* rgb */ color: rgb(47, 19, 123);
/* oklch */ color: oklch(31.1% 0.159 284.7);
Tailwind
colors: {
  custom: {
    50: '#7356a2',
    500: '#2f137b',
    950: '#000000',
  },
}
SCSS
$custom: #2f137b;
$custom-light: #7356a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f137b",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 256.154,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31105,
    "c": 0.15853,
    "h": 284.7
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#2F137B
secondary
#91B139
accent
#F038BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F137B

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

Preview Lab → · Contrast checker → · Palette generator →

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