#2F1C90#2F1C90

#2F1C90 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.176 H 279.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2F1C90
RGBrgb(47, 28, 144)
HSLhsl(250, 67%, 34%)
HSVhsv(250, 81%, 56%)
CMYKcmyk(67.4%, 80.6%, 0%, 43.5%)
CIE-LABlab(21.76, 42.98, -60.08)
CIE-LCHlch(21.76, 73.87, 305.58°)
OKLaboklab(34.46% 0.0284 -0.1735)
OKLCHoklch(34.46% 0.176 279.3)
XYZxyz(6.6200, 3.4479, 26.6968)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C90 #7D901C
analogous
#1C4390 #2F1C90 #691C90
triadic
#2F1C90 #902F1C #1C902F
tetradic
#2F1C90 #901C43 #7D901C #1C9069
square
#2F1C90 #901C43 #7D901C #1C9069
split-complementary
#2F1C90 #90691C #43901C
monochromatic
#0E082A #1E125D #2F1C90 #4026C3 #624ADC

Accessibility & contrast

On white

12.43
#2F1C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F1C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C90
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C90#FFFFFF#000000##FFFFFF
##2F1C901.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1c90;
/* rgb */ color: rgb(47, 28, 144);
/* oklch */ color: oklch(34.5% 0.176 279.3);
Tailwind
colors: {
  custom: {
    50: '#765cb2',
    500: '#2f1c90',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c90;
$custom-light: #765cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c90",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 249.828,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34463,
    "c": 0.17581,
    "h": 279.3
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#2F1C90
secondary
#ABBE4A
accent
#EA3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1C90

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

Preview Lab → · Contrast checker → · Palette generator →

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