#2F3D91#2F3D91

#2F3D91 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.139 H 271.5°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2F3D91
RGBrgb(47, 61, 145)
HSLhsl(231, 51%, 38%)
HSVhsv(231, 68%, 57%)
CMYKcmyk(67.6%, 57.9%, 0%, 43.1%)
CIE-LABlab(29.38, 23.08, -48.22)
CIE-LCHlch(29.38, 53.46, 295.58°)
OKLaboklab(40.01% 0.0037 -0.1387)
OKLCHoklch(40.01% 0.139 271.5)
XYZxyz(7.9501, 5.9854, 27.5189)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D91 #91832F
analogous
#2F6E91 #2F3D91 #522F91
triadic
#2F3D91 #912F3D #3D912F
tetradic
#2F3D91 #912F6E #91832F #2F9152
square
#2F3D91 #912F6E #91832F #2F9152
split-complementary
#2F3D91 #91522F #6E912F
monochromatic
#111635 #202A63 #2F3D91 #3E50BF #6B7ACF

Accessibility & contrast

On white

9.56
#2F3D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F3D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D91
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D91#FFFFFF#000000##FFFFFF
##2F3D911.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3d91;
/* rgb */ color: rgb(47, 61, 145);
/* oklch */ color: oklch(40.0% 0.139 271.5);
Tailwind
colors: {
  custom: {
    50: '#7472b2',
    500: '#2f3d91',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d91;
$custom-light: #7472b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d91",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 145
  },
  "hsl": {
    "h": 231.429,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40009,
    "c": 0.13878,
    "h": 271.5
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#2F3D91
secondary
#B6AB65
accent
#C64DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3D91

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

Preview Lab → · Contrast checker → · Palette generator →

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