#2F236B#2F236B

#2F236B is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.7% C 0.120 H 284.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2F236B
RGBrgb(47, 35, 107)
HSLhsl(250, 51%, 28%)
HSVhsv(250, 67%, 42%)
CMYKcmyk(56.1%, 67.3%, 0%, 58%)
CIE-LABlab(19.51, 26.85, -40.27)
CIE-LCHlch(19.51, 48.40, 303.69°)
OKLaboklab(31.75% 0.0308 -0.1156)
OKLCHoklch(31.75% 0.12 284.9)
XYZxyz(4.4264, 2.8677, 14.2274)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F236B #5F6B23
analogous
#233B6B #2F236B #53236B
triadic
#2F236B #6B2F23 #236B2F
tetradic
#2F236B #6B233B #5F6B23 #236B53
square
#2F236B #6B233B #5F6B23 #236B53
split-complementary
#2F236B #6B5323 #3B6B23
monochromatic
#0A0817 #1B143D #2F236B #433299 #5B46C2

Accessibility & contrast

On white

13.35
#2F236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F236B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F236B#FFFFFF#000000##FFFFFF
##2F236B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#163543
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f236b;
/* rgb */ color: rgb(47, 35, 107);
/* oklch */ color: oklch(31.7% 0.120 284.9);
Tailwind
colors: {
  custom: {
    50: '#6e5e96',
    500: '#2f236b',
    950: '#000000',
  },
}
SCSS
$custom: #2f236b;
$custom-light: #6e5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#2f236b",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 250,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31745,
    "c": 0.11962,
    "h": 284.9
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#2F236B
secondary
#919E4B
accent
#DA4EC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2F236B

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

Preview Lab → · Contrast checker → · Palette generator →

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