#2F3B87#2F3B87

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

Color values

HEX#2F3B87
RGBrgb(47, 59, 135)
HSLhsl(232, 48%, 36%)
HSVhsv(232, 65%, 53%)
CMYKcmyk(65.2%, 56.3%, 0%, 47.1%)
CIE-LABlab(28.06, 20.73, -44.17)
CIE-LCHlch(28.06, 48.79, 295.14°)
OKLaboklab(38.78% 0.0052 -0.1268)
OKLCHoklch(38.78% 0.127 272.3)
XYZxyz(7.1080, 5.4809, 23.6003)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B87 #877B2F
analogous
#2F6787 #2F3B87 #4F2F87
triadic
#2F3B87 #872F3B #3B872F
tetradic
#2F3B87 #872F67 #877B2F #2F874F
square
#2F3B87 #872F67 #877B2F #2F874F
split-complementary
#2F3B87 #874F2F #67872F
monochromatic
#0F132C #1F275A #2F3B87 #3F4FB4 #6674CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F3B87#FFFFFF#000000##FFFFFF
##2F3B871.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)
#02468A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3b87;
/* rgb */ color: rgb(47, 59, 135);
/* oklch */ color: oklch(38.8% 0.127 272.3);
Tailwind
colors: {
  custom: {
    50: '#7270ab',
    500: '#2f3b87',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b87;
$custom-light: #7270ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b87",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 135
  },
  "hsl": {
    "h": 231.818,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38784,
    "c": 0.12695,
    "h": 272.3
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#2F3B87
secondary
#B1A661
accent
#C550D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3B87

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

Preview Lab → · Contrast checker → · Palette generator →

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