#2F3296#2F3296

#2F3296 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.160 H 274.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2F3296
RGBrgb(47, 50, 150)
HSLhsl(238, 52%, 39%)
HSVhsv(238, 69%, 59%)
CMYKcmyk(68.7%, 66.7%, 0%, 41.2%)
CIE-LABlab(26.98, 32.17, -55.19)
CIE-LCHlch(26.98, 63.88, 300.24°)
OKLaboklab(38.37% 0.0128 -0.1593)
OKLCHoklch(38.37% 0.16 274.6)
XYZxyz(7.8161, 5.0868, 29.4182)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3296 #96932F
analogous
#2F6596 #2F3296 #5F2F96
triadic
#2F3296 #962F32 #32962F
tetradic
#2F3296 #962F65 #96932F #2F965F
square
#2F3296 #962F65 #96932F #2F965F
split-complementary
#2F3296 #965F2F #65962F
monochromatic
#121339 #202267 #2F3296 #3F43C3 #6E71D2

Accessibility & contrast

On white

10.41
#2F3296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F3296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3296
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3296#FFFFFF#000000##FFFFFF
##2F32961.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3296;
/* rgb */ color: rgb(47, 50, 150);
/* oklch */ color: oklch(38.4% 0.160 274.6);
Tailwind
colors: {
  custom: {
    50: '#766ab6',
    500: '#2f3296',
    950: '#000000',
  },
}
SCSS
$custom: #2f3296;
$custom-light: #766ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3296",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 238.252,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38372,
    "c": 0.15981,
    "h": 274.6
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3296

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

Preview Lab → · Contrast checker → · Palette generator →

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