#2F2396#2F2396

#2F2396 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.177 H 277.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2F2396
RGBrgb(47, 35, 150)
HSLhsl(246, 62%, 36%)
HSVhsv(246, 77%, 59%)
CMYKcmyk(68.7%, 76.7%, 0%, 41.2%)
CIE-LABlab(23.70, 41.20, -60.59)
CIE-LCHlch(23.70, 73.27, 304.22°)
OKLaboklab(36.02% 0.0229 -0.175)
OKLCHoklch(36.02% 0.177 277.5)
XYZxyz(7.2766, 4.0078, 29.2384)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2396 #8A9623
analogous
#235196 #2F2396 #692396
triadic
#2F2396 #962F23 #23962F
tetradic
#2F2396 #962351 #8A9623 #239669
square
#2F2396 #962351 #8A9623 #239669
split-complementary
#2F2396 #966923 #519623
monochromatic
#100C33 #1F1764 #2F2396 #3F2FC8 #685BD9

Accessibility & contrast

On white

11.66
#2F2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2396
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2396#FFFFFF#000000##FFFFFF
##2F23961.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2396;
/* rgb */ color: rgb(47, 35, 150);
/* oklch */ color: oklch(36.0% 0.177 277.5);
Tailwind
colors: {
  custom: {
    50: '#7760b6',
    500: '#2f2396',
    950: '#000000',
  },
}
SCSS
$custom: #2f2396;
$custom-light: #7760b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2396",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 246.261,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36018,
    "c": 0.17653,
    "h": 277.5
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#2F2396
secondary
#B3BD58
accent
#E543D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2396

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

Preview Lab → · Contrast checker → · Palette generator →

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