#2F3591#2F3591

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

Color values

HEX#2F3591
RGBrgb(47, 53, 145)
HSLhsl(236, 51%, 38%)
HSVhsv(236, 68%, 57%)
CMYKcmyk(67.6%, 63.4%, 0%, 43.1%)
CIE-LABlab(27.28, 28.42, -51.63)
CIE-LCHlch(27.28, 58.93, 298.83°)
OKLaboklab(38.46% 0.0107 -0.1488)
OKLCHoklch(38.46% 0.149 274.1)
XYZxyz(7.5545, 5.1942, 27.3870)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3591 #918B2F
analogous
#2F6691 #2F3591 #5A2F91
triadic
#2F3591 #912F35 #35912F
tetradic
#2F3591 #912F66 #918B2F #2F915A
square
#2F3591 #912F66 #918B2F #2F915A
split-complementary
#2F3591 #915A2F #66912F
monochromatic
#111335 #202463 #2F3591 #3E46BF #6B71CF

Accessibility & contrast

On white

10.30
#2F3591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F3591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3591
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3591#FFFFFF#000000##FFFFFF
##2F35911.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#004C5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3591;
/* rgb */ color: rgb(47, 53, 145);
/* oklch */ color: oklch(38.5% 0.149 274.1);
Tailwind
colors: {
  custom: {
    50: '#746cb2',
    500: '#2f3591',
    950: '#000000',
  },
}
SCSS
$custom: #2f3591;
$custom-light: #746cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3591",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 145
  },
  "hsl": {
    "h": 236.327,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.14921,
    "h": 274.1
  },
  "luminance": 0.05195
}

Semantic roles & 50–950 ramp

primary
#2F3591
secondary
#B6B165
accent
#D24DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3591

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

Preview Lab → · Contrast checker → · Palette generator →

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