#2F2695#2F2695

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

Color values

HEX#2F2695
RGBrgb(47, 38, 149)
HSLhsl(245, 59%, 37%)
HSVhsv(245, 74%, 58%)
CMYKcmyk(68.5%, 74.5%, 0%, 41.6%)
CIE-LABlab(24.19, 39.18, -59.15)
CIE-LCHlch(24.19, 70.95, 303.52°)
OKLaboklab(36.34% 0.0213 -0.1709)
OKLCHoklch(36.34% 0.172 277.1)
XYZxyz(7.2885, 4.1599, 28.8468)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2695 #8C9526
analogous
#265595 #2F2695 #672695
triadic
#2F2695 #952F26 #26952F
tetradic
#2F2695 #952655 #8C9526 #269567
square
#2F2695 #952655 #8C9526 #269567
split-complementary
#2F2695 #956726 #559526
monochromatic
#100D33 #201A64 #2F2695 #3E32C6 #695FD6

Accessibility & contrast

On white

11.46
#2F2695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2695
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2695#FFFFFF#000000##FFFFFF
##2F26951.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2695;
/* rgb */ color: rgb(47, 38, 149);
/* oklch */ color: oklch(36.3% 0.172 277.1);
Tailwind
colors: {
  custom: {
    50: '#7662b5',
    500: '#2f2695',
    950: '#000000',
  },
}
SCSS
$custom: #2f2695;
$custom-light: #7662b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2695",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 244.865,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36337,
    "c": 0.17221,
    "h": 277.1
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2695

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

Preview Lab → · Contrast checker → · Palette generator →

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