#2F3396#2F3396

#2F3396 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.159 H 274.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2F3396
RGBrgb(47, 51, 150)
HSLhsl(238, 52%, 39%)
HSVhsv(238, 69%, 59%)
CMYKcmyk(68.7%, 66%, 0%, 41.2%)
CIE-LABlab(27.22, 31.52, -54.79)
CIE-LCHlch(27.22, 63.22, 299.91°)
OKLaboklab(38.55% 0.012 -0.1581)
OKLCHoklch(38.55% 0.159 274.3)
XYZxyz(7.8593, 5.1733, 29.4326)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3396 #96922F
analogous
#2F6696 #2F3396 #5E2F96
triadic
#2F3396 #962F33 #33962F
tetradic
#2F3396 #962F66 #96922F #2F965E
square
#2F3396 #962F66 #96922F #2F965E
split-complementary
#2F3396 #965E2F #66962F
monochromatic
#121339 #202367 #2F3396 #3F44C3 #6E72D2

Accessibility & contrast

On white

10.32
#2F3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3396
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3396#FFFFFF#000000##FFFFFF
##2F33961.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3396;
/* rgb */ color: rgb(47, 51, 150);
/* oklch */ color: oklch(38.5% 0.159 274.3);
Tailwind
colors: {
  custom: {
    50: '#756bb6',
    500: '#2f3396',
    950: '#000000',
  },
}
SCSS
$custom: #2f3396;
$custom-light: #756bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3396",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 237.67,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38549,
    "c": 0.15859,
    "h": 274.3
  },
  "luminance": 0.05174
}

Semantic roles & 50–950 ramp

primary
#2F3396
secondary
#B9B668
accent
#D64CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3396

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

Preview Lab → · Contrast checker → · Palette generator →

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