#2F3E91#2F3E91

#2F3E91 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.137 H 271.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2F3E91
RGBrgb(47, 62, 145)
HSLhsl(231, 51%, 38%)
HSVhsv(231, 68%, 57%)
CMYKcmyk(67.6%, 57.2%, 0%, 43.1%)
CIE-LABlab(29.65, 22.41, -47.78)
CIE-LCHlch(29.65, 52.77, 295.13°)
OKLaboklab(40.21% 0.0027 -0.1374)
OKLCHoklch(40.21% 0.137 271.1)
XYZxyz(8.0040, 6.0932, 27.5369)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E91 #91822F
analogous
#2F6F91 #2F3E91 #512F91
triadic
#2F3E91 #912F3E #3E912F
tetradic
#2F3E91 #912F6F #91822F #2F9151
square
#2F3E91 #912F6F #91822F #2F9151
split-complementary
#2F3E91 #91512F #6F912F
monochromatic
#111635 #202A63 #2F3E91 #3E52BF #6B7BCF

Accessibility & contrast

On white

9.46
#2F3E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F3E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E91
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E91#FFFFFF#000000##FFFFFF
##2F3E911.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#005261
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3e91;
/* rgb */ color: rgb(47, 62, 145);
/* oklch */ color: oklch(40.2% 0.137 271.1);
Tailwind
colors: {
  custom: {
    50: '#7373b2',
    500: '#2f3e91',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e91;
$custom-light: #7373b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e91",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 145
  },
  "hsl": {
    "h": 230.816,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40211,
    "c": 0.13746,
    "h": 271.1
  },
  "luminance": 0.06094
}

Semantic roles & 50–950 ramp

primary
#2F3E91
secondary
#B6AA65
accent
#C54DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3E91

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

Preview Lab → · Contrast checker → · Palette generator →

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