#2F3496#2F3496

#2F3496 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.157 H 274.1°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2F3496
RGBrgb(47, 52, 150)
HSLhsl(237, 52%, 39%)
HSVhsv(237, 69%, 59%)
CMYKcmyk(68.7%, 65.3%, 0%, 41.2%)
CIE-LABlab(27.47, 30.88, -54.39)
CIE-LCHlch(27.47, 62.55, 299.58°)
OKLaboklab(38.73% 0.0112 -0.157)
OKLCHoklch(38.73% 0.157 274.1)
XYZxyz(7.9035, 5.2616, 29.4473)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3496 #96912F
analogous
#2F6796 #2F3496 #5D2F96
triadic
#2F3496 #962F34 #34962F
tetradic
#2F3496 #962F67 #96912F #2F965D
square
#2F3496 #962F67 #96912F #2F965D
split-complementary
#2F3496 #965D2F #67962F
monochromatic
#121439 #202467 #2F3496 #3F46C3 #6E73D2

Accessibility & contrast

On white

10.23
#2F3496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F3496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3496
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3496#FFFFFF#000000##FFFFFF
##2F34961.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3496;
/* rgb */ color: rgb(47, 52, 150);
/* oklch */ color: oklch(38.7% 0.157 274.1);
Tailwind
colors: {
  custom: {
    50: '#756bb6',
    500: '#2f3496',
    950: '#000000',
  },
}
SCSS
$custom: #2f3496;
$custom-light: #756bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3496",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 237.087,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38728,
    "c": 0.15736,
    "h": 274.1
  },
  "luminance": 0.05262
}

Semantic roles & 50–950 ramp

primary
#2F3496
secondary
#B9B568
accent
#D54CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3496

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

Preview Lab → · Contrast checker → · Palette generator →

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