#2F265C#2F265C

#2F265C is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.0% C 0.093 H 287.4°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2F265C
RGBrgb(47, 38, 92)
HSLhsl(250, 42%, 25%)
HSVhsv(250, 59%, 36%)
CMYKcmyk(48.9%, 58.7%, 0%, 63.9%)
CIE-LABlab(19.07, 19.76, -31.12)
CIE-LCHlch(19.07, 36.87, 302.41°)
OKLaboklab(31.04% 0.0277 -0.0887)
OKLCHoklch(31.04% 0.093 287.4)
XYZxyz(3.7966, 2.7631, 10.4564)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F265C #535C26
analogous
#26385C #2F265C #4A265C
triadic
#2F265C #5C2F26 #265C2F
tetradic
#2F265C #5C2638 #535C26 #265C4A
square
#2F265C #5C2638 #535C26 #265C4A
split-complementary
#2F265C #5C4A26 #385C26
monochromatic
#0B0916 #191431 #2F265C #453887 #5B4AB3

Accessibility & contrast

On white

13.53
#2F265C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F265C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F265C
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F265C#FFFFFF#000000##FFFFFF
##2F265C1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305E
Deuteranopia (green-blind)
#092D5B
Tritanopia (blue-blind)
#21323D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f265c;
/* rgb */ color: rgb(47, 38, 92);
/* oklch */ color: oklch(31.0% 0.093 287.4);
Tailwind
colors: {
  custom: {
    50: '#6b608a',
    500: '#2f265c',
    950: '#000000',
  },
}
SCSS
$custom: #2f265c;
$custom-light: #6b608a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f265c",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 92
  },
  "hsl": {
    "h": 250,
    "s": 41.538,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31042,
    "c": 0.09289,
    "h": 287.4
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#2F265C
secondary
#848F4F
accent
#D156BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2F265C

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

Preview Lab → · Contrast checker → · Palette generator →

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