#2F1F9C#2F1F9C

#2F1F9C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.188 H 277.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2F1F9C
RGBrgb(47, 31, 156)
HSLhsl(248, 67%, 37%)
HSVhsv(248, 80%, 61%)
CMYKcmyk(69.9%, 80.1%, 0%, 38.8%)
CIE-LABlab(23.62, 45.22, -64.40)
CIE-LCHlch(23.62, 78.69, 305.07°)
OKLaboklab(36.16% 0.0235 -0.1861)
OKLCHoklch(36.16% 0.188 277.2)
XYZxyz(7.6611, 3.9839, 31.8113)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F9C #8C9C1F
analogous
#1F4E9C #2F1F9C #6E1F9C
triadic
#2F1F9C #9C2F1F #1F9C2F
tetradic
#2F1F9C #9C1F4E #8C9C1F #1F9C6E
square
#2F1F9C #9C1F4E #8C9C1F #1F9C6E
split-complementary
#2F1F9C #9C6E1F #4E9C1F
monochromatic
#100B36 #201569 #2F1F9C #3E29CF #6958DE

Accessibility & contrast

On white

11.69
#2F1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F9C
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F9C#FFFFFF#000000##FFFFFF
##2F1F9C1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1f9c;
/* rgb */ color: rgb(47, 31, 156);
/* oklch */ color: oklch(36.2% 0.188 277.2);
Tailwind
colors: {
  custom: {
    50: '#795eba',
    500: '#2f1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f9c;
$custom-light: #795eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f9c",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 247.68,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36157,
    "c": 0.18758,
    "h": 277.2
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#2F1F9C
secondary
#B4C155
accent
#EA3ED4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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