#2F2392#2F2392

#2F2392 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.172 H 278.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2F2392
RGBrgb(47, 35, 146)
HSLhsl(246, 61%, 35%)
HSVhsv(246, 76%, 57%)
CMYKcmyk(67.8%, 76%, 0%, 42.7%)
CIE-LABlab(23.27, 39.90, -58.82)
CIE-LCHlch(23.27, 71.07, 304.15°)
OKLaboklab(35.59% 0.0238 -0.1699)
OKLCHoklch(35.59% 0.172 278)
XYZxyz(6.9600, 3.8811, 27.5709)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2392 #869223
analogous
#234F92 #2F2392 #662392
triadic
#2F2392 #922F23 #23922F
tetradic
#2F2392 #92234F #869223 #239266
square
#2F2392 #92234F #869223 #239266
split-complementary
#2F2392 #926623 #4F9223
monochromatic
#0F0B2F #1F1761 #2F2392 #3F2FC3 #6658D7

Accessibility & contrast

On white

11.82
#2F2392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2392
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2392#FFFFFF#000000##FFFFFF
##2F23921.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2392;
/* rgb */ color: rgb(47, 35, 146);
/* oklch */ color: oklch(35.6% 0.172 278.0);
Tailwind
colors: {
  custom: {
    50: '#7660b3',
    500: '#2f2392',
    950: '#000000',
  },
}
SCSS
$custom: #2f2392;
$custom-light: #7660b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2392",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 246.486,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35593,
    "c": 0.17154,
    "h": 278
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#2F2392
secondary
#B0BB55
accent
#E443D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2392

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

Preview Lab → · Contrast checker → · Palette generator →

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