#2F2B87#2F2B87

#2F2B87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.148 H 277.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2F2B87
RGBrgb(47, 43, 135)
HSLhsl(243, 52%, 35%)
HSVhsv(243, 68%, 53%)
CMYKcmyk(65.2%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.94, 31.36, -50.88)
CIE-LCHlch(23.94, 59.77, 301.64°)
OKLaboklab(35.74% 0.02 -0.1467)
OKLCHoklch(35.74% 0.148 277.7)
XYZxyz(6.4079, 4.0808, 23.3670)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B87 #83872B
analogous
#2B5587 #2F2B87 #5D2B87
triadic
#2F2B87 #872F2B #2B872F
tetradic
#2F2B87 #872B55 #83872B #2B875D
square
#2F2B87 #872B55 #83872B #2B875D
split-complementary
#2F2B87 #875D2B #55872B
monochromatic
#0F0D2A #1F1C59 #2F2B87 #3F3AB5 #6560CC

Accessibility & contrast

On white

11.56
#2F2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B87
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B87#FFFFFF#000000##FFFFFF
##2F2B871.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2b87;
/* rgb */ color: rgb(47, 43, 135);
/* oklch */ color: oklch(35.7% 0.148 277.7);
Tailwind
colors: {
  custom: {
    50: '#7365ab',
    500: '#2f2b87',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b87;
$custom-light: #7365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b87",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 242.609,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.14806,
    "h": 277.7
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#2F2B87
secondary
#AFB25B
accent
#DB4DD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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