#2F3E87#2F3E87

#2F3E87 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.123 H 271.0°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2F3E87
RGBrgb(47, 62, 135)
HSLhsl(230, 48%, 36%)
HSVhsv(230, 65%, 53%)
CMYKcmyk(65.2%, 54.1%, 0%, 47.1%)
CIE-LABlab(28.90, 18.69, -42.82)
CIE-LCHlch(28.90, 46.72, 293.58°)
OKLaboklab(39.41% 0.0021 -0.1228)
OKLCHoklch(39.41% 0.123 271)
XYZxyz(7.2666, 5.7982, 23.6532)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E87 #87782F
analogous
#2F6A87 #2F3E87 #4C2F87
triadic
#2F3E87 #872F3E #3E872F
tetradic
#2F3E87 #872F6A #87782F #2F874C
square
#2F3E87 #872F6A #87782F #2F874C
split-complementary
#2F3E87 #874C2F #6A872F
monochromatic
#0F142C #1F295A #2F3E87 #3F53B4 #6677CA

Accessibility & contrast

On white

9.72
#2F3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E87
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E87#FFFFFF#000000##FFFFFF
##2F3E871.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11488A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3e87;
/* rgb */ color: rgb(47, 62, 135);
/* oklch */ color: oklch(39.4% 0.123 271.0);
Tailwind
colors: {
  custom: {
    50: '#7173aa',
    500: '#2f3e87',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e87;
$custom-light: #7173aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e87",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 229.773,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39411,
    "c": 0.12286,
    "h": 271
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#2F3E87
secondary
#B1A361
accent
#C150D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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