#2F2794#2F2794

#2F2794 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.170 H 277.1°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2F2794
RGBrgb(47, 39, 148)
HSLhsl(244, 58%, 37%)
HSVhsv(244, 74%, 58%)
CMYKcmyk(68.2%, 73.6%, 0%, 42%)
CIE-LABlab(24.30, 38.26, -58.36)
CIE-LCHlch(24.30, 69.79, 303.25°)
OKLaboklab(36.38% 0.0209 -0.1686)
OKLCHoklch(36.38% 0.17 277.1)
XYZxyz(7.2414, 4.1929, 28.4389)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2794 #8C9427
analogous
#275694 #2F2794 #662794
triadic
#2F2794 #942F27 #27942F
tetradic
#2F2794 #942756 #8C9427 #279466
square
#2F2794 #942756 #8C9427 #279466
split-complementary
#2F2794 #946627 #569427
monochromatic
#100D33 #201A64 #2F2794 #3E34C4 #6960D5

Accessibility & contrast

On white

11.42
#2F2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2794
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2794#FFFFFF#000000##FFFFFF
##2F27941.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2794;
/* rgb */ color: rgb(47, 39, 148);
/* oklch */ color: oklch(36.4% 0.170 277.1);
Tailwind
colors: {
  custom: {
    50: '#7663b5',
    500: '#2f2794',
    950: '#000000',
  },
}
SCSS
$custom: #2f2794;
$custom-light: #7663b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2794",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 244.404,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36382,
    "c": 0.16987,
    "h": 277.1
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#2F2794
secondary
#B4BB5C
accent
#E246D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2794

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

Preview Lab → · Contrast checker → · Palette generator →

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