#2F264C#2F264C

#2F264C is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.9% C 0.068 H 292.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2F264C
RGBrgb(47, 38, 76)
HSLhsl(254, 33%, 22%)
HSVhsv(254, 50%, 30%)
CMYKcmyk(38.2%, 50%, 0%, 70.2%)
CIE-LABlab(17.97, 14.50, -22.13)
CIE-LCHlch(17.97, 26.45, 303.23°)
OKLaboklab(29.87% 0.0261 -0.0623)
OKLCHoklch(29.87% 0.068 292.7)
XYZxyz(3.1696, 2.5123, 7.1540)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F264C #434C26
analogous
#26304C #2F264C #42264C
triadic
#2F264C #4C2F26 #264C2F
tetradic
#2F264C #4C2630 #434C26 #264C42
square
#2F264C #4C2630 #434C26 #264C42
split-complementary
#2F264C #4C4226 #304C26
monochromatic
#0D0A14 #161223 #2F264C #483A75 #614F9E

Accessibility & contrast

On white

13.98
#2F264C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F264C
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F264C#FFFFFF#000000##FFFFFF
##2F264C1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192C4D
Deuteranopia (green-blind)
#1B2B4B
Tritanopia (blue-blind)
#282D35
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f264c;
/* rgb */ color: rgb(47, 38, 76);
/* oklch */ color: oklch(29.9% 0.068 292.7);
Tailwind
colors: {
  custom: {
    50: '#69607e',
    500: '#2f264c',
    950: '#000000',
  },
}
SCSS
$custom: #2f264c;
$custom-light: #69607e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f264c",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 76
  },
  "hsl": {
    "h": 254.211,
    "s": 33.333,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2987,
    "c": 0.06754,
    "h": 292.7
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2F264C
secondary
#747F4F
accent
#C95EB0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F264C

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

Preview Lab → · Contrast checker → · Palette generator →

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