#2F147B#2F147B

#2F147B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.158 H 284.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2F147B
RGBrgb(47, 20, 123)
HSLhsl(256, 72%, 28%)
HSVhsv(256, 84%, 48%)
CMYKcmyk(61.8%, 83.7%, 0%, 51.8%)
CIE-LABlab(18.07, 40.44, -52.94)
CIE-LCHlch(18.07, 66.61, 307.37°)
OKLaboklab(31.21% 0.0398 -0.1526)
OKLCHoklch(31.21% 0.158 284.6)
XYZxyz(4.9965, 2.5344, 18.9609)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F147B #607B14
analogous
#142C7B #2F147B #62147B
triadic
#2F147B #7B2F14 #147B2F
tetradic
#2F147B #7B142C #607B14 #147B62
square
#2F147B #7B142C #607B14 #147B62
split-complementary
#2F147B #7B6214 #2C7B14
monochromatic
#0A041A #1B0B46 #2F147B #431DB0 #5B2DDD

Accessibility & contrast

On white

13.93
#2F147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F147B
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F147B#FFFFFF#000000##FFFFFF
##2F147B1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f147b;
/* rgb */ color: rgb(47, 20, 123);
/* oklch */ color: oklch(31.2% 0.158 284.6);
Tailwind
colors: {
  custom: {
    50: '#7256a2',
    500: '#2f147b',
    950: '#000000',
  },
}
SCSS
$custom: #2f147b;
$custom-light: #7256a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f147b",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 255.728,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31212,
    "c": 0.15767,
    "h": 284.6
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#2F147B
secondary
#92B13A
accent
#EF39BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F147B

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

Preview Lab → · Contrast checker → · Palette generator →

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