#2F144E#2F144E

#2F144E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.102 H 301.1°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2F144E
RGBrgb(47, 20, 78)
HSLhsl(268, 59%, 19%)
HSVhsv(268, 74%, 31%)
CMYKcmyk(39.7%, 74.4%, 0%, 69.4%)
CIE-LABlab(13.56, 26.96, -30.57)
CIE-LCHlch(13.56, 40.76, 311.41°)
OKLaboklab(26.67% 0.0524 -0.087)
OKLCHoklch(26.67% 0.102 301.1)
XYZxyz(2.7973, 1.6547, 7.3783)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F144E #334E14
analogous
#14164E #2F144E #4C144E
triadic
#2F144E #4E2F14 #144E2F
tetradic
#2F144E #4E1416 #334E14 #144E4C
square
#2F144E #4E1416 #334E14 #144E4C
split-complementary
#2F144E #4E4C14 #164E14
monochromatic
#0F0618 #12081D #2F144E #4C207F #6A2DAF

Accessibility & contrast

On white

15.78
#2F144E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F144E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F144E
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F144E#FFFFFF#000000##FFFFFF
##2F144E1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#28212F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f144e;
/* rgb */ color: rgb(47, 20, 78);
/* oklch */ color: oklch(26.7% 0.102 301.1);
Tailwind
colors: {
  custom: {
    50: '#6b5480',
    500: '#2f144e',
    950: '#000000',
  },
}
SCSS
$custom: #2f144e;
$custom-light: #6b5480;
$custom-dark: #000000;
JSON
{
  "hex": "#2f144e",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 78
  },
  "hsl": {
    "h": 267.931,
    "s": 59.184,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26666,
    "c": 0.1016,
    "h": 301.1
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#2F144E
secondary
#628638
accent
#E24599
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F144E

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

Preview Lab → · Contrast checker → · Palette generator →

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