#2F2387#2F2387

#2F2387 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.158 H 279.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2F2387
RGBrgb(47, 35, 135)
HSLhsl(247, 59%, 33%)
HSVhsv(247, 74%, 53%)
CMYKcmyk(65.2%, 74.1%, 0%, 47.1%)
CIE-LABlab(22.14, 36.27, -53.83)
CIE-LCHlch(22.14, 64.91, 303.97°)
OKLaboklab(34.45% 0.0263 -0.1553)
OKLCHoklch(34.45% 0.158 279.6)
XYZxyz(6.1451, 3.5552, 23.2794)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2387 #7B8723
analogous
#234987 #2F2387 #612387
triadic
#2F2387 #872F23 #23872F
tetradic
#2F2387 #872349 #7B8723 #238761
square
#2F2387 #872349 #7B8723 #238761
split-complementary
#2F2387 #876123 #498723
monochromatic
#0D0A26 #1E1656 #2F2387 #4030B8 #6252D2

Accessibility & contrast

On white

12.27
#2F2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2387
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2387#FFFFFF#000000##FFFFFF
##2F23871.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2387;
/* rgb */ color: rgb(47, 35, 135);
/* oklch */ color: oklch(34.4% 0.158 279.6);
Tailwind
colors: {
  custom: {
    50: '#7460ab',
    500: '#2f2387',
    950: '#000000',
  },
}
SCSS
$custom: #2f2387;
$custom-light: #7460ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2387",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 247.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3445,
    "c": 0.15752,
    "h": 279.6
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#2F2387
secondary
#AAB650
accent
#E246CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2387

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

Preview Lab → · Contrast checker → · Palette generator →

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