#2F2E96#2F2E96

#2F2E96 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.165 H 275.5°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2F2E96
RGBrgb(47, 46, 150)
HSLhsl(241, 53%, 38%)
HSVhsv(241, 69%, 59%)
CMYKcmyk(68.7%, 69.3%, 0%, 41.2%)
CIE-LABlab(26.04, 34.70, -56.73)
CIE-LCHlch(26.04, 66.51, 301.45°)
OKLaboklab(37.69% 0.0157 -0.1638)
OKLCHoklch(37.69% 0.165 275.5)
XYZxyz(7.6525, 4.7597, 29.3637)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E96 #95962E
analogous
#2E6196 #2F2E96 #632E96
triadic
#2F2E96 #962F2E #2E962F
tetradic
#2F2E96 #962E61 #95962E #2E9663
square
#2F2E96 #962E61 #95962E #2E9663
split-complementary
#2F2E96 #96632E #61962E
monochromatic
#121138 #202067 #2F2E96 #3F3EC4 #6D6CD2

Accessibility & contrast

On white

10.76
#2F2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E96
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E96#FFFFFF#000000##FFFFFF
##2F2E961.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003994
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2e96;
/* rgb */ color: rgb(47, 46, 150);
/* oklch */ color: oklch(37.7% 0.165 275.5);
Tailwind
colors: {
  custom: {
    50: '#7667b6',
    500: '#2f2e96',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e96;
$custom-light: #7667b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e96",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 240.577,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37689,
    "c": 0.16459,
    "h": 275.5
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#2F2E96
secondary
#B8B967
accent
#DC4BDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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