#2F2E9B#2F2E9B

#2F2E9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.171 H 275.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F2E9B
RGBrgb(47, 46, 155)
HSLhsl(241, 54%, 39%)
HSVhsv(241, 70%, 61%)
CMYKcmyk(69.7%, 70.3%, 0%, 39.2%)
CIE-LABlab(26.52, 36.44, -59.01)
CIE-LCHlch(26.52, 69.35, 301.69°)
OKLaboklab(38.18% 0.0151 -0.1705)
OKLCHoklch(38.18% 0.171 275)
XYZxyz(8.0637, 4.9241, 31.5295)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E9B #9A9B2E
analogous
#2E649B #2F2E9B #652E9B
triadic
#2F2E9B #9B2F2E #2E9B2F
tetradic
#2F2E9B #9B2E64 #9A9B2E #2E9B65
square
#2F2E9B #9B2E64 #9A9B2E #2E9B65
split-complementary
#2F2E9B #9B652E #649B2E
monochromatic
#12123D #21206C #2F2E9B #4140C6 #706FD4

Accessibility & contrast

On white

10.58
#2F2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E9B
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E9B#FFFFFF#000000##FFFFFF
##2F2E9B1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2e9b;
/* rgb */ color: rgb(47, 46, 155);
/* oklch */ color: oklch(38.2% 0.171 275.0);
Tailwind
colors: {
  custom: {
    50: '#7767ba',
    500: '#2f2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e9b;
$custom-light: #7767ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e9b",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 240.55,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3818,
    "c": 0.17115,
    "h": 275
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#2F2E9B
secondary
#BBBC69
accent
#DE4ADC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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