#2F2686#2F2686

#2F2686 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.153 H 279.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2F2686
RGBrgb(47, 38, 134)
HSLhsl(246, 56%, 34%)
HSVhsv(246, 72%, 53%)
CMYKcmyk(64.9%, 71.6%, 0%, 47.5%)
CIE-LABlab(22.69, 34.14, -52.30)
CIE-LCHlch(22.69, 62.45, 303.13°)
OKLaboklab(34.81% 0.0242 -0.1509)
OKLCHoklch(34.81% 0.153 279.1)
XYZxyz(6.1671, 3.7113, 22.9410)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2686 #7D8626
analogous
#264D86 #2F2686 #5F2686
triadic
#2F2686 #862F26 #26862F
tetradic
#2F2686 #86264D #7D8626 #26865F
square
#2F2686 #86264D #7D8626 #26865F
split-complementary
#2F2686 #865F26 #4D8626
monochromatic
#0E0B27 #1E1856 #2F2686 #4034B6 #6257CF

Accessibility & contrast

On white

12.05
#2F2686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F2686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2686
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2686#FFFFFF#000000##FFFFFF
##2F26861.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2686;
/* rgb */ color: rgb(47, 38, 134);
/* oklch */ color: oklch(34.8% 0.153 279.1);
Tailwind
colors: {
  custom: {
    50: '#7361aa',
    500: '#2f2686',
    950: '#000000',
  },
}
SCSS
$custom: #2f2686;
$custom-light: #7361aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2686",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 134
  },
  "hsl": {
    "h": 245.625,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34813,
    "c": 0.15277,
    "h": 279.1
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#2F2686
secondary
#ABB454
accent
#DF49D1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2686

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

Preview Lab → · Contrast checker → · Palette generator →

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