#2F1F9E#2F1F9E

#2F1F9E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.190 H 276.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2F1F9E
RGBrgb(47, 31, 158)
HSLhsl(248, 67%, 37%)
HSVhsv(248, 80%, 62%)
CMYKcmyk(70.3%, 80.4%, 0%, 38%)
CIE-LABlab(23.84, 45.84, -65.25)
CIE-LCHlch(23.84, 79.74, 305.09°)
OKLaboklab(36.38% 0.0229 -0.1886)
OKLCHoklch(36.38% 0.19 276.9)
XYZxyz(7.8318, 4.0522, 32.7105)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F9E #8E9E1F
analogous
#1F4F9E #2F1F9E #6F1F9E
triadic
#2F1F9E #9E2F1F #1F9E2F
tetradic
#2F1F9E #9E1F4F #8E9E1F #1F9E6F
square
#2F1F9E #9E1F4F #8E9E1F #1F9E6F
split-complementary
#2F1F9E #9E6F1F #4F9E1F
monochromatic
#110B38 #20156B #2F1F9E #3E29D1 #6A59DE

Accessibility & contrast

On white

11.60
#2F1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F9E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F9E#FFFFFF#000000##FFFFFF
##2F1F9E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f1f9e;
/* rgb */ color: rgb(47, 31, 158);
/* oklch */ color: oklch(36.4% 0.190 276.9);
Tailwind
colors: {
  custom: {
    50: '#795ebc',
    500: '#2f1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f9e;
$custom-light: #795ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f9e",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 247.559,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3638,
    "c": 0.18997,
    "h": 276.9
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#2F1F9E
secondary
#B5C256
accent
#EA3ED4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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