#2F3196#2F3196

#2F3196 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.161 H 274.8°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2F3196
RGBrgb(47, 49, 150)
HSLhsl(239, 52%, 39%)
HSVhsv(239, 69%, 59%)
CMYKcmyk(68.7%, 67.3%, 0%, 41.2%)
CIE-LABlab(26.74, 32.81, -55.58)
CIE-LCHlch(26.74, 64.54, 300.55°)
OKLaboklab(38.2% 0.0135 -0.1605)
OKLCHoklch(38.2% 0.161 274.8)
XYZxyz(7.7738, 5.0023, 29.4041)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3196 #96942F
analogous
#2F6496 #2F3196 #602F96
triadic
#2F3196 #962F31 #31962F
tetradic
#2F3196 #962F64 #96942F #2F9660
square
#2F3196 #962F64 #96942F #2F9660
split-complementary
#2F3196 #96602F #64962F
monochromatic
#121339 #202267 #2F3196 #3F42C3 #6E70D2

Accessibility & contrast

On white

10.50
#2F3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3196
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3196#FFFFFF#000000##FFFFFF
##2F31961.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3196;
/* rgb */ color: rgb(47, 49, 150);
/* oklch */ color: oklch(38.2% 0.161 274.8);
Tailwind
colors: {
  custom: {
    50: '#7669b6',
    500: '#2f3196',
    950: '#000000',
  },
}
SCSS
$custom: #2f3196;
$custom-light: #7669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3196",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 238.835,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38198,
    "c": 0.16103,
    "h": 274.8
  },
  "luminance": 0.05003
}

Semantic roles & 50–950 ramp

primary
#2F3196
secondary
#B9B768
accent
#D94CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3196

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

Preview Lab → · Contrast checker → · Palette generator →

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