#2F2395#2F2395

#2F2395 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.175 H 277.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2F2395
RGBrgb(47, 35, 149)
HSLhsl(246, 62%, 36%)
HSVhsv(246, 77%, 58%)
CMYKcmyk(68.5%, 76.5%, 0%, 41.6%)
CIE-LABlab(23.59, 40.87, -60.15)
CIE-LCHlch(23.59, 72.72, 304.20°)
OKLaboklab(35.91% 0.0231 -0.1738)
OKLCHoklch(35.91% 0.175 277.6)
XYZxyz(7.1964, 3.9757, 28.8161)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2395 #899523
analogous
#235095 #2F2395 #682395
triadic
#2F2395 #952F23 #23952F
tetradic
#2F2395 #952350 #899523 #239568
square
#2F2395 #952350 #899523 #239568
split-complementary
#2F2395 #956823 #509523
monochromatic
#100C32 #1F1763 #2F2395 #3F2FC7 #675AD8

Accessibility & contrast

On white

11.70
#2F2395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2395
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2395#FFFFFF#000000##FFFFFF
##2F23951.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2395;
/* rgb */ color: rgb(47, 35, 149);
/* oklch */ color: oklch(35.9% 0.175 277.6);
Tailwind
colors: {
  custom: {
    50: '#7760b5',
    500: '#2f2395',
    950: '#000000',
  },
}
SCSS
$custom: #2f2395;
$custom-light: #7760b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2395",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 149
  },
  "hsl": {
    "h": 246.316,
    "s": 61.957,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35911,
    "c": 0.17529,
    "h": 277.6
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2395

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

Preview Lab → · Contrast checker → · Palette generator →

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