#2F1F98#2F1F98

#2F1F98 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.183 H 277.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2F1F98
RGBrgb(47, 31, 152)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 80%, 60%)
CMYKcmyk(69.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.17, 43.96, -62.69)
CIE-LCHlch(23.17, 76.57, 305.04°)
OKLaboklab(35.71% 0.0246 -0.1811)
OKLCHoklch(35.71% 0.183 277.7)
XYZxyz(7.3279, 3.8507, 30.0568)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F98 #88981F
analogous
#1F4B98 #2F1F98 #6B1F98
triadic
#2F1F98 #982F1F #1F982F
tetradic
#2F1F98 #981F4B #88981F #1F986B
square
#2F1F98 #981F4B #88981F #1F986B
split-complementary
#2F1F98 #986B1F #4B981F
monochromatic
#100A32 #1F1565 #2F1F98 #3F29CB #6755DC

Accessibility & contrast

On white

11.86
#2F1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F98
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F98#FFFFFF#000000##FFFFFF
##2F1F981.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1f98;
/* rgb */ color: rgb(47, 31, 152);
/* oklch */ color: oklch(35.7% 0.183 277.7);
Tailwind
colors: {
  custom: {
    50: '#785eb8',
    500: '#2f1f98',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f98;
$custom-light: #785eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f98",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 247.934,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35714,
    "c": 0.18277,
    "h": 277.7
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#2F1F98
secondary
#B1C053
accent
#E93FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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