#2F124C#2F124C

#2F124C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.102 H 302.8°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2F124C
RGBrgb(47, 18, 76)
HSLhsl(270, 62%, 18%)
HSVhsv(270, 76%, 30%)
CMYKcmyk(38.2%, 76.3%, 0%, 70.2%)
CIE-LABlab(12.98, 27.52, -30.14)
CIE-LCHlch(12.98, 40.82, 312.40°)
OKLaboklab(26.2% 0.0552 -0.0858)
OKLCHoklch(26.2% 0.102 302.8)
XYZxyz(2.6928, 1.5588, 6.9951)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F124C #2F4C12
analogous
#12124C #2F124C #4C124C
triadic
#2F124C #4C2F12 #124C2F
tetradic
#2F124C #4C1212 #2F4C12 #124C4C
square
#2F124C #4C1212 #2F4C12 #124C4C
split-complementary
#2F124C #4C4C12 #124C12
monochromatic
#0F0619 #10061B #2F124C #4E1E7D #6C29AF

Accessibility & contrast

On white

16.01
#2F124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F124C
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F124C#FFFFFF#000000##FFFFFF
##2F124C1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#291F2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f124c;
/* rgb */ color: rgb(47, 18, 76);
/* oklch */ color: oklch(26.2% 0.102 302.8);
Tailwind
colors: {
  custom: {
    50: '#6b527e',
    500: '#2f124c',
    950: '#000000',
  },
}
SCSS
$custom: #2f124c;
$custom-light: #6b527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f124c",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 270,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26195,
    "c": 0.102,
    "h": 302.8
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#2F124C
secondary
#5D8535
accent
#E54394
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F124C

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

Preview Lab → · Contrast checker → · Palette generator →

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