#2F2E9E#2F2E9E

#2F2E9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.175 H 274.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2F2E9E
RGBrgb(47, 46, 158)
HSLhsl(241, 55%, 40%)
HSVhsv(241, 71%, 62%)
CMYKcmyk(70.3%, 70.9%, 0%, 38%)
CIE-LABlab(26.81, 37.47, -60.36)
CIE-LCHlch(26.81, 71.05, 301.83°)
OKLaboklab(38.48% 0.0146 -0.1744)
OKLCHoklch(38.48% 0.175 274.8)
XYZxyz(8.3188, 5.0262, 32.8729)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E9E #9D9E2E
analogous
#2E659E #2F2E9E #672E9E
triadic
#2F2E9E #9E2F2E #2E9E2F
tetradic
#2F2E9E #9E2E65 #9D9E2E #2E9E67
square
#2F2E9E #9E2E65 #9D9E2E #2E9E67
split-complementary
#2F2E9E #9E672E #659E2E
monochromatic
#13123F #21206F #2F2E9E #4341C8 #7271D6

Accessibility & contrast

On white

10.47
#2F2E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F2E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E9E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E9E#FFFFFF#000000##FFFFFF
##2F2E9E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2e9e;
/* rgb */ color: rgb(47, 46, 158);
/* oklch */ color: oklch(38.5% 0.175 274.8);
Tailwind
colors: {
  custom: {
    50: '#7868bc',
    500: '#2f2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e9e;
$custom-light: #7868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e9e",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 240.536,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.38479,
    "c": 0.17505,
    "h": 274.8
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#2F2E9E
secondary
#BCBD6B
accent
#DE4ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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