#2F189E#2F189E

#2F189E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.195 H 277.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2F189E
RGBrgb(47, 24, 158)
HSLhsl(250, 74%, 36%)
HSVhsv(250, 85%, 62%)
CMYKcmyk(70.3%, 84.8%, 0%, 38%)
CIE-LABlab(22.74, 49.06, -67.08)
CIE-LCHlch(22.74, 83.10, 306.18°)
OKLaboklab(35.62% 0.0258 -0.1938)
OKLCHoklch(35.62% 0.195 277.6)
XYZxyz(7.6685, 3.7255, 32.6561)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F189E #879E18
analogous
#18449E #2F189E #72189E
triadic
#2F189E #9E2F18 #189E2F
tetradic
#2F189E #9E1844 #879E18 #189E72
square
#2F189E #9E1844 #879E18 #189E72
split-complementary
#2F189E #9E7218 #449E18
monochromatic
#0F0834 #1F1069 #2F189E #3F20D3 #664DE4

Accessibility & contrast

On white

12.03
#2F189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F189E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F189E#FFFFFF#000000##FFFFFF
##2F189E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f189e;
/* rgb */ color: rgb(47, 24, 158);
/* oklch */ color: oklch(35.6% 0.195 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a5bbc',
    500: '#2f189e',
    950: '#000000',
  },
}
SCSS
$custom: #2f189e;
$custom-light: #7a5bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f189e",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 250.299,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35619,
    "c": 0.19548,
    "h": 277.6
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#2F189E
secondary
#B1C64C
accent
#F038D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F189E

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

Preview Lab → · Contrast checker → · Palette generator →

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