#2F2696#2F2696

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

Color values

HEX#2F2696
RGBrgb(47, 38, 150)
HSLhsl(245, 60%, 37%)
HSVhsv(245, 75%, 59%)
CMYKcmyk(68.7%, 74.7%, 0%, 41.2%)
CIE-LABlab(24.30, 39.51, -59.60)
CIE-LCHlch(24.30, 71.51, 303.54°)
OKLaboklab(36.44% 0.0211 -0.1722)
OKLCHoklch(36.44% 0.173 277)
XYZxyz(7.3686, 4.1919, 29.2691)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2696 #8D9626
analogous
#265596 #2F2696 #672696
triadic
#2F2696 #962F26 #26962F
tetradic
#2F2696 #962655 #8D9626 #269667
square
#2F2696 #962655 #8D9626 #269667
split-complementary
#2F2696 #966726 #559626
monochromatic
#100D34 #201A65 #2F2696 #3E32C7 #6960D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2696#FFFFFF#000000##FFFFFF
##2F26961.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)
#003E99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2696;
/* rgb */ color: rgb(47, 38, 150);
/* oklch */ color: oklch(36.4% 0.173 277.0);
Tailwind
colors: {
  custom: {
    50: '#7762b6',
    500: '#2f2696',
    950: '#000000',
  },
}
SCSS
$custom: #2f2696;
$custom-light: #7762b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2696",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 244.821,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.17348,
    "h": 277
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#2F2696
secondary
#B4BC5C
accent
#E345D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2696

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

Preview Lab → · Contrast checker → · Palette generator →

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