#2F2694#2F2694

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

Color values

HEX#2F2694
RGBrgb(47, 38, 148)
HSLhsl(245, 59%, 36%)
HSVhsv(245, 74%, 58%)
CMYKcmyk(68.2%, 74.3%, 0%, 42%)
CIE-LABlab(24.09, 38.84, -58.71)
CIE-LCHlch(24.09, 70.39, 303.49°)
OKLaboklab(36.23% 0.0215 -0.1696)
OKLCHoklch(36.23% 0.171 277.2)
XYZxyz(7.2090, 4.1281, 28.4281)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2694 #8B9426
analogous
#265494 #2F2694 #662694
triadic
#2F2694 #942F26 #26942F
tetradic
#2F2694 #942654 #8B9426 #269466
square
#2F2694 #942654 #8B9426 #269466
split-complementary
#2F2694 #946626 #549426
monochromatic
#100D33 #201963 #2F2694 #3E33C5 #685FD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2694#FFFFFF#000000##FFFFFF
##2F26941.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)
#003E97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2694;
/* rgb */ color: rgb(47, 38, 148);
/* oklch */ color: oklch(36.2% 0.171 277.2);
Tailwind
colors: {
  custom: {
    50: '#7662b5',
    500: '#2f2694',
    950: '#000000',
  },
}
SCSS
$custom: #2f2694;
$custom-light: #7662b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2694",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 148
  },
  "hsl": {
    "h": 244.909,
    "s": 59.14,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36234,
    "c": 0.17094,
    "h": 277.2
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#2F2694
secondary
#B3BB5B
accent
#E245D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2694

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

Preview Lab → · Contrast checker → · Palette generator →

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