#2F3C91#2F3C91

#2F3C91 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.140 H 271.9°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2F3C91
RGBrgb(47, 60, 145)
HSLhsl(232, 51%, 38%)
HSVhsv(232, 68%, 57%)
CMYKcmyk(67.6%, 58.6%, 0%, 43.1%)
CIE-LABlab(29.11, 23.75, -48.65)
CIE-LCHlch(29.11, 54.14, 296.02°)
OKLaboklab(39.81% 0.0046 -0.14)
OKLCHoklch(39.81% 0.14 271.9)
XYZxyz(7.8973, 5.8797, 27.5013)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C91 #91842F
analogous
#2F6D91 #2F3C91 #532F91
triadic
#2F3C91 #912F3C #3C912F
tetradic
#2F3C91 #912F6D #91842F #2F9153
square
#2F3C91 #912F6D #91842F #2F9153
split-complementary
#2F3C91 #91532F #6D912F
monochromatic
#111635 #202963 #2F3C91 #3E4FBF #6B79CF

Accessibility & contrast

On white

9.65
#2F3C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F3C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C91
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C91#FFFFFF#000000##FFFFFF
##2F3C911.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3c91;
/* rgb */ color: rgb(47, 60, 145);
/* oklch */ color: oklch(39.8% 0.140 271.9);
Tailwind
colors: {
  custom: {
    50: '#7471b2',
    500: '#2f3c91',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c91;
$custom-light: #7471b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c91",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 145
  },
  "hsl": {
    "h": 232.041,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39808,
    "c": 0.1401,
    "h": 271.9
  },
  "luminance": 0.0588
}

Semantic roles & 50–950 ramp

primary
#2F3C91
secondary
#B6AC65
accent
#C84DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3C91

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

Preview Lab → · Contrast checker → · Palette generator →

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