#2F2393#2F2393

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

Color values

HEX#2F2393
RGBrgb(47, 35, 147)
HSLhsl(246, 62%, 36%)
HSVhsv(246, 76%, 58%)
CMYKcmyk(68%, 76.2%, 0%, 42.4%)
CIE-LABlab(23.38, 40.22, -59.26)
CIE-LCHlch(23.38, 71.62, 304.17°)
OKLaboklab(35.7% 0.0236 -0.1712)
OKLCHoklch(35.7% 0.173 277.8)
XYZxyz(7.0381, 3.9124, 27.9824)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2393 #879323
analogous
#234F93 #2F2393 #672393
triadic
#2F2393 #932F23 #23932F
tetradic
#2F2393 #93234F #879323 #239367
square
#2F2393 #93234F #879323 #239367
split-complementary
#2F2393 #936723 #4F9323
monochromatic
#0F0B30 #1F1762 #2F2393 #3F2FC4 #6659D7

Accessibility & contrast

On white

11.78
#2F2393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2393
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2393#FFFFFF#000000##FFFFFF
##2F23931.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2393;
/* rgb */ color: rgb(47, 35, 147);
/* oklch */ color: oklch(35.7% 0.173 277.8);
Tailwind
colors: {
  custom: {
    50: '#7660b4',
    500: '#2f2393',
    950: '#000000',
  },
}
SCSS
$custom: #2f2393;
$custom-light: #7660b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2393",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 246.429,
    "s": 61.538,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35699,
    "c": 0.1728,
    "h": 277.8
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#2F2393
secondary
#B1BC56
accent
#E543D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2393

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

Preview Lab → · Contrast checker → · Palette generator →

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