#2D117F#2D117F

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

Color values

HEX#2D117F
RGBrgb(45, 17, 127)
HSLhsl(255, 76%, 28%)
HSVhsv(255, 87%, 50%)
CMYKcmyk(64.6%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.88, 42.72, -55.82)
CIE-LCHlch(17.88, 70.29, 307.43°)
OKLaboklab(31.16% 0.0366 -0.161)
OKLCHoklch(31.16% 0.165 282.8)
XYZxyz(5.1122, 2.4907, 20.2859)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D117F #637F11
analogous
#112C7F #2D117F #64117F
triadic
#2D117F #7F2D11 #117F2D
tetradic
#2D117F #7F112C #637F11 #117F64
square
#2D117F #7F112C #637F11 #117F64
split-complementary
#2D117F #7F6411 #2C7F11
monochromatic
#0A041B #1A0A49 #2D117F #4018B5 #5828E2

Accessibility & contrast

On white

14.02
#2D117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D117F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D117F#FFFFFF#000000##FFFFFF
##2D117F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d117f;
/* rgb */ color: rgb(45, 17, 127);
/* oklch */ color: oklch(31.2% 0.165 282.8);
Tailwind
colors: {
  custom: {
    50: '#7355a5',
    500: '#2d117f',
    950: '#000000',
  },
}
SCSS
$custom: #2d117f;
$custom-light: #7355a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d117f",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 255.273,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31162,
    "c": 0.1651,
    "h": 282.8
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#2D117F
secondary
#95B537
accent
#F335C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D117F

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

Preview Lab → · Contrast checker → · Palette generator →

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