#2F3191#2F3191

#2F3191 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.154 H 275.2°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2F3191
RGBrgb(47, 49, 145)
HSLhsl(239, 51%, 38%)
HSVhsv(239, 68%, 57%)
CMYKcmyk(67.6%, 66.2%, 0%, 43.1%)
CIE-LABlab(26.29, 31.03, -53.25)
CIE-LCHlch(26.29, 61.63, 300.23°)
OKLaboklab(37.73% 0.014 -0.1536)
OKLCHoklch(37.73% 0.154 275.2)
XYZxyz(7.3798, 4.8446, 27.3288)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3191 #918F2F
analogous
#2F6291 #2F3191 #5E2F91
triadic
#2F3191 #912F31 #31912F
tetradic
#2F3191 #912F62 #918F2F #2F915E
square
#2F3191 #912F62 #918F2F #2F915E
split-complementary
#2F3191 #915E2F #62912F
monochromatic
#111235 #202163 #2F3191 #3E41BF #6B6DCF

Accessibility & contrast

On white

10.67
#2F3191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F3191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3191
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3191#FFFFFF#000000##FFFFFF
##2F31911.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f3191;
/* rgb */ color: rgb(47, 49, 145);
/* oklch */ color: oklch(37.7% 0.154 275.2);
Tailwind
colors: {
  custom: {
    50: '#7569b2',
    500: '#2f3191',
    950: '#000000',
  },
}
SCSS
$custom: #2f3191;
$custom-light: #7569b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3191",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 238.776,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37728,
    "c": 0.15426,
    "h": 275.2
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#2F3191
secondary
#B6B565
accent
#D84DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3191

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

Preview Lab → · Contrast checker → · Palette generator →

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