#2F3891#2F3891

#2F3891 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.145 H 273.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2F3891
RGBrgb(47, 56, 145)
HSLhsl(234, 51%, 38%)
HSVhsv(234, 68%, 57%)
CMYKcmyk(67.6%, 61.4%, 0%, 43.1%)
CIE-LABlab(28.05, 26.43, -50.37)
CIE-LCHlch(28.05, 56.89, 297.69°)
OKLaboklab(39.02% 0.0081 -0.1451)
OKLCHoklch(39.02% 0.145 273.2)
XYZxyz(7.6956, 5.4763, 27.4341)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3891 #91882F
analogous
#2F6991 #2F3891 #572F91
triadic
#2F3891 #912F38 #38912F
tetradic
#2F3891 #912F69 #91882F #2F9157
square
#2F3891 #912F69 #91882F #2F9157
split-complementary
#2F3891 #91572F #69912F
monochromatic
#111435 #202663 #2F3891 #3E4ABF #6B74CF

Accessibility & contrast

On white

10.02
#2F3891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F3891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3891
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3891#FFFFFF#000000##FFFFFF
##2F38911.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3891;
/* rgb */ color: rgb(47, 56, 145);
/* oklch */ color: oklch(39.0% 0.145 273.2);
Tailwind
colors: {
  custom: {
    50: '#746eb2',
    500: '#2f3891',
    950: '#000000',
  },
}
SCSS
$custom: #2f3891;
$custom-light: #746eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3891",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 145
  },
  "hsl": {
    "h": 234.49,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39024,
    "c": 0.14535,
    "h": 273.2
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#2F3891
secondary
#B6AF65
accent
#CE4DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3891

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

Preview Lab → · Contrast checker → · Palette generator →

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