#2F2E7E#2F2E7E

#2F2E7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.132 H 277.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2F2E7E
RGBrgb(47, 46, 126)
HSLhsl(241, 47%, 34%)
HSVhsv(241, 63%, 49%)
CMYKcmyk(62.7%, 63.5%, 0%, 50.6%)
CIE-LABlab(23.88, 26.22, -45.32)
CIE-LCHlch(23.88, 52.36, 300.06°)
OKLaboklab(35.45% 0.018 -0.1304)
OKLCHoklch(35.45% 0.132 277.9)
XYZxyz(5.9140, 4.0642, 20.2074)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E7E #7D7E2E
analogous
#2E557E #2F2E7E #572E7E
triadic
#2F2E7E #7E2F2E #2E7E2F
tetradic
#2F2E7E #7E2E55 #7D7E2E #2E7E57
square
#2F2E7E #7E2E55 #7D7E2E #2E7E57
split-complementary
#2F2E7E #7E572E #557E2E
monochromatic
#0E0D24 #1E1E51 #2F2E7E #403EAB #6261C5

Accessibility & contrast

On white

11.58
#2F2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E7E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E7E#FFFFFF#000000##FFFFFF
##2F2E7E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2e7e;
/* rgb */ color: rgb(47, 46, 126);
/* oklch */ color: oklch(35.5% 0.132 277.9);
Tailwind
colors: {
  custom: {
    50: '#7167a4',
    500: '#2f2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e7e;
$custom-light: #7167a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e7e",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 240.75,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35453,
    "c": 0.1316,
    "h": 277.9
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#2F2E7E
secondary
#ABAC5C
accent
#D652D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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