#2F1C98#2F1C98

#2F1C98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.185 H 278.1°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2F1C98
RGBrgb(47, 28, 152)
HSLhsl(249, 69%, 35%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(69.1%, 81.6%, 0%, 40.4%)
CIE-LABlab(22.66, 45.45, -63.54)
CIE-LCHlch(22.66, 78.12, 305.58°)
OKLaboklab(35.36% 0.026 -0.1835)
OKLCHoklch(35.36% 0.185 278.1)
XYZxyz(7.2532, 3.7012, 30.0318)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C98 #85981C
analogous
#1C4798 #2F1C98 #6D1C98
triadic
#2F1C98 #982F1C #1C982F
tetradic
#2F1C98 #981C47 #85981C #1C986D
square
#2F1C98 #981C47 #85981C #1C986D
split-complementary
#2F1C98 #986D1C #47981C
monochromatic
#0F0931 #1F1264 #2F1C98 #3F26CC #6650DF

Accessibility & contrast

On white

12.07
#2F1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F1C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C98
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C98#FFFFFF#000000##FFFFFF
##2F1C981.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1c98;
/* rgb */ color: rgb(47, 28, 152);
/* oklch */ color: oklch(35.4% 0.185 278.1);
Tailwind
colors: {
  custom: {
    50: '#785cb8',
    500: '#2f1c98',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c98;
$custom-light: #785cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c98",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 249.194,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35357,
    "c": 0.18538,
    "h": 278.1
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#2F1C98
secondary
#B0C14E
accent
#EC3CD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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