#2F137C#2F137C

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

Color values

HEX#2F137C
RGBrgb(47, 19, 124)
HSLhsl(256, 73%, 28%)
HSVhsv(256, 85%, 49%)
CMYKcmyk(62.1%, 84.7%, 0%, 51.4%)
CIE-LABlab(18.03, 41.18, -53.65)
CIE-LCHlch(18.03, 67.63, 307.51°)
OKLaboklab(31.22% 0.04 -0.1546)
OKLCHoklch(31.22% 0.16 284.5)
XYZxyz(5.0421, 2.5250, 19.2866)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F137C #607C13
analogous
#132B7C #2F137C #63137C
triadic
#2F137C #7C2F13 #137C2F
tetradic
#2F137C #7C132B #607C13 #137C63
square
#2F137C #7C132B #607C13 #137C63
split-complementary
#2F137C #7C6313 #2B7C13
monochromatic
#0A041B #1B0B47 #2F137C #431BB1 #5B2BDF

Accessibility & contrast

On white

13.95
#2F137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F137C
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F137C#FFFFFF#000000##FFFFFF
##2F137C1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003349
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f137c;
/* rgb */ color: rgb(47, 19, 124);
/* oklch */ color: oklch(31.2% 0.160 284.5);
Tailwind
colors: {
  custom: {
    50: '#7356a3',
    500: '#2f137c',
    950: '#000000',
  },
}
SCSS
$custom: #2f137c;
$custom-light: #7356a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f137c",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 256,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31217,
    "c": 0.15971,
    "h": 284.5
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#2F137C
secondary
#92B239
accent
#F038BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F137C

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

Preview Lab → · Contrast checker → · Palette generator →

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