#2F235B#2F235B

#2F235B is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.4% C 0.096 H 289.3°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2F235B
RGBrgb(47, 35, 91)
HSLhsl(253, 44%, 25%)
HSVhsv(253, 62%, 36%)
CMYKcmyk(48.4%, 61.5%, 0%, 64.3%)
CIE-LABlab(18.19, 21.47, -31.87)
CIE-LCHlch(18.19, 38.42, 303.97°)
OKLaboklab(30.37% 0.0317 -0.0909)
OKLCHoklch(30.37% 0.096 289.3)
XYZxyz(3.6611, 2.5616, 10.1970)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F235B #4F5B23
analogous
#23335B #2F235B #4B235B
triadic
#2F235B #5B2F23 #235B2F
tetradic
#2F235B #5B2333 #4F5B23 #235B4B
square
#2F235B #5B2333 #4F5B23 #235B4B
split-complementary
#2F235B #5B4B23 #335B23
monochromatic
#0B0916 #18122F #2F235B #463487 #5D45B3

Accessibility & contrast

On white

13.89
#2F235B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F235B
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F235B#FFFFFF#000000##FFFFFF
##2F235B1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5D
Deuteranopia (green-blind)
#032B5A
Tritanopia (blue-blind)
#222F3B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f235b;
/* rgb */ color: rgb(47, 35, 91);
/* oklch */ color: oklch(30.4% 0.096 289.3);
Tailwind
colors: {
  custom: {
    50: '#6b5e8a',
    500: '#2f235b',
    950: '#000000',
  },
}
SCSS
$custom: #2f235b;
$custom-light: #6b5e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f235b",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 91
  },
  "hsl": {
    "h": 252.857,
    "s": 44.444,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30372,
    "c": 0.09624,
    "h": 289.3
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#2F235B
secondary
#808F4B
accent
#D454B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F235B

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

Preview Lab → · Contrast checker → · Palette generator →

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