#2F2996#2F2996

#2F2996 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.170 H 276.5°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2F2996
RGBrgb(47, 41, 150)
HSLhsl(243, 57%, 37%)
HSVhsv(243, 73%, 59%)
CMYKcmyk(68.7%, 72.7%, 0%, 41.2%)
CIE-LABlab(24.93, 37.75, -58.56)
CIE-LCHlch(24.93, 69.68, 302.81°)
OKLaboklab(36.89% 0.0192 -0.1692)
OKLCHoklch(36.89% 0.17 276.5)
XYZxyz(7.4685, 4.3916, 29.3023)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2996 #909629
analogous
#295996 #2F2996 #662996
triadic
#2F2996 #962F29 #29962F
tetradic
#2F2996 #962959 #909629 #299666
square
#2F2996 #962959 #909629 #299666
split-complementary
#2F2996 #966629 #599629
monochromatic
#110F36 #201C66 #2F2996 #3E36C6 #6B65D5

Accessibility & contrast

On white

11.18
#2F2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2996
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2996#FFFFFF#000000##FFFFFF
##2F29961.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2996;
/* rgb */ color: rgb(47, 41, 150);
/* oklch */ color: oklch(36.9% 0.170 276.5);
Tailwind
colors: {
  custom: {
    50: '#7664b6',
    500: '#2f2996',
    950: '#000000',
  },
}
SCSS
$custom: #2f2996;
$custom-light: #7664b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2996",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 243.303,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3689,
    "c": 0.17026,
    "h": 276.5
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#2F2996
secondary
#B6BB60
accent
#E047D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2996

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

Preview Lab → · Contrast checker → · Palette generator →

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