#2F3791#2F3791

#2F3791 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.147 H 273.5°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2F3791
RGBrgb(47, 55, 145)
HSLhsl(235, 51%, 38%)
HSVhsv(235, 68%, 57%)
CMYKcmyk(67.6%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.79, 27.10, -50.79)
CIE-LCHlch(27.79, 57.57, 298.08°)
OKLaboklab(38.83% 0.009 -0.1464)
OKLCHoklch(38.83% 0.147 273.5)
XYZxyz(7.6476, 5.3804, 27.4181)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3791 #91892F
analogous
#2F6891 #2F3791 #582F91
triadic
#2F3791 #912F37 #37912F
tetradic
#2F3791 #912F68 #91892F #2F9158
square
#2F3791 #912F68 #91892F #2F9158
split-complementary
#2F3791 #91582F #68912F
monochromatic
#111435 #202563 #2F3791 #3E49BF #6B73CF

Accessibility & contrast

On white

10.11
#2F3791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F3791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3791
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3791#FFFFFF#000000##FFFFFF
##2F37911.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3791;
/* rgb */ color: rgb(47, 55, 145);
/* oklch */ color: oklch(38.8% 0.147 273.5);
Tailwind
colors: {
  custom: {
    50: '#746db2',
    500: '#2f3791',
    950: '#000000',
  },
}
SCSS
$custom: #2f3791;
$custom-light: #746db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3791",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 235.102,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38832,
    "c": 0.14665,
    "h": 273.5
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#2F3791
secondary
#B6B065
accent
#CF4DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3791

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

Preview Lab → · Contrast checker → · Palette generator →

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