#2F134E#2F134E

#2F134E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.103 H 301.4°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#2F134E
RGBrgb(47, 19, 78)
HSLhsl(268, 61%, 19%)
HSVhsv(268, 76%, 31%)
CMYKcmyk(39.7%, 75.6%, 0%, 69.4%)
CIE-LABlab(13.35, 27.54, -30.91)
CIE-LCHlch(13.35, 41.40, 311.70°)
OKLaboklab(26.52% 0.0537 -0.088)
OKLCHoklch(26.52% 0.103 301.4)
XYZxyz(2.7800, 1.6201, 7.3725)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F134E #324E13
analogous
#13144E #2F134E #4D134E
triadic
#2F134E #4E2F13 #134E2F
tetradic
#2F134E #4E1314 #324E13 #134E4D
square
#2F134E #4E1314 #324E13 #134E4D
split-complementary
#2F134E #4E4D13 #144E13
monochromatic
#0F0619 #11071D #2F134E #4D1F7F #6A2BB0

Accessibility & contrast

On white

15.86
#2F134E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F134E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F134E
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F134E#FFFFFF#000000##FFFFFF
##2F134E1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f134e;
/* rgb */ color: rgb(47, 19, 78);
/* oklch */ color: oklch(26.5% 0.103 301.4);
Tailwind
colors: {
  custom: {
    50: '#6b5380',
    500: '#2f134e',
    950: '#000000',
  },
}
SCSS
$custom: #2f134e;
$custom-light: #6b5380;
$custom-dark: #000000;
JSON
{
  "hex": "#2f134e",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 78
  },
  "hsl": {
    "h": 268.475,
    "s": 60.825,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26518,
    "c": 0.10309,
    "h": 301.4
  },
  "luminance": 0.0162
}

Semantic roles & 50–950 ramp

primary
#2F134E
secondary
#608736
accent
#E44498
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F134E

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

Preview Lab → · Contrast checker → · Palette generator →

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