#2F2792#2F2792

#2F2792 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.167 H 277.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2F2792
RGBrgb(47, 39, 146)
HSLhsl(244, 58%, 36%)
HSVhsv(244, 73%, 57%)
CMYKcmyk(67.8%, 73.3%, 0%, 42.7%)
CIE-LABlab(24.10, 37.59, -57.46)
CIE-LCHlch(24.10, 68.66, 303.19°)
OKLaboklab(36.18% 0.0213 -0.1659)
OKLCHoklch(36.18% 0.167 277.3)
XYZxyz(7.0844, 4.1301, 27.6124)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2792 #8A9227
analogous
#275592 #2F2792 #652792
triadic
#2F2792 #922F27 #27922F
tetradic
#2F2792 #922755 #8A9227 #279265
square
#2F2792 #922755 #8A9227 #279265
split-complementary
#2F2792 #926527 #559227
monochromatic
#100D31 #1F1A62 #2F2792 #3F34C2 #685FD4

Accessibility & contrast

On white

11.50
#2F2792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2792
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2792#FFFFFF#000000##FFFFFF
##2F27921.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003590
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2792;
/* rgb */ color: rgb(47, 39, 146);
/* oklch */ color: oklch(36.2% 0.167 277.3);
Tailwind
colors: {
  custom: {
    50: '#7663b3',
    500: '#2f2792',
    950: '#000000',
  },
}
SCSS
$custom: #2f2792;
$custom-light: #7663b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2792",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 244.486,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36177,
    "c": 0.16731,
    "h": 277.3
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#2F2792
secondary
#B3BA5B
accent
#E147D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2792

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

Preview Lab → · Contrast checker → · Palette generator →

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