#2F138E#2F138E

#2F138E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.181 H 280.6°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2F138E
RGBrgb(47, 19, 142)
HSLhsl(254, 76%, 32%)
HSVhsv(254, 87%, 56%)
CMYKcmyk(66.9%, 86.6%, 0%, 44.3%)
CIE-LABlab(20.13, 46.45, -61.52)
CIE-LCHlch(20.13, 77.09, 307.05°)
OKLaboklab(33.28% 0.0334 -0.1776)
OKLCHoklch(33.28% 0.181 280.6)
XYZxyz(6.2861, 3.0226, 25.8381)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F138E #728E13
analogous
#13348E #2F138E #6D138E
triadic
#2F138E #8E2F13 #138E2F
tetradic
#2F138E #8E1334 #728E13 #138E6D
square
#2F138E #8E1334 #728E13 #138E6D
split-complementary
#2F138E #8E6D13 #348E13
monochromatic
#0B0522 #1D0C58 #2F138E #411AC4 #5F37E4

Accessibility & contrast

On white

13.09
#2F138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F138E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F138E#FFFFFF#000000##FFFFFF
##2F138E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f138e;
/* rgb */ color: rgb(47, 19, 142);
/* oklch */ color: oklch(33.3% 0.181 280.6);
Tailwind
colors: {
  custom: {
    50: '#7657b0',
    500: '#2f138e',
    950: '#000000',
  },
}
SCSS
$custom: #2f138e;
$custom-light: #7657b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f138e",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 253.659,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33277,
    "c": 0.18066,
    "h": 280.6
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#2F138E
secondary
#A3C23B
accent
#F335C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2F138E

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

Preview Lab → · Contrast checker → · Palette generator →

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