#2F1F90#2F1F90

#2F1F90 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.173 H 278.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1F90
RGBrgb(47, 31, 144)
HSLhsl(248, 65%, 34%)
HSVhsv(248, 78%, 56%)
CMYKcmyk(67.4%, 78.5%, 0%, 43.5%)
CIE-LABlab(22.29, 41.43, -59.19)
CIE-LCHlch(22.29, 72.26, 304.99°)
OKLaboklab(34.84% 0.0267 -0.1709)
OKLCHoklch(34.84% 0.173 278.9)
XYZxyz(6.6947, 3.5974, 26.7217)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F90 #80901F
analogous
#1F4790 #2F1F90 #681F90
triadic
#2F1F90 #902F1F #1F902F
tetradic
#2F1F90 #901F47 #80901F #1F9068
square
#2F1F90 #901F47 #80901F #1F9068
split-complementary
#2F1F90 #90681F #47901F
monochromatic
#0E092B #1F145E #2F1F90 #3F2AC2 #6450D9

Accessibility & contrast

On white

12.21
#2F1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F90
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F90#FFFFFF#000000##FFFFFF
##2F1F901.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1f90;
/* rgb */ color: rgb(47, 31, 144);
/* oklch */ color: oklch(34.8% 0.173 278.9);
Tailwind
colors: {
  custom: {
    50: '#765eb2',
    500: '#2f1f90',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f90;
$custom-light: #765eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f90",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 248.496,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34839,
    "c": 0.17303,
    "h": 278.9
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#2F1F90
secondary
#ADBC4E
accent
#E840D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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