#2F3D87#2F3D87

#2F3D87 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.124 H 271.5°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2F3D87
RGBrgb(47, 61, 135)
HSLhsl(230, 48%, 36%)
HSVhsv(230, 65%, 53%)
CMYKcmyk(65.2%, 54.8%, 0%, 47.1%)
CIE-LABlab(28.62, 19.37, -43.27)
CIE-LCHlch(28.62, 47.41, 294.11°)
OKLaboklab(39.2% 0.0032 -0.1242)
OKLCHoklch(39.2% 0.124 271.5)
XYZxyz(7.2127, 5.6905, 23.6352)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D87 #87792F
analogous
#2F6987 #2F3D87 #4D2F87
triadic
#2F3D87 #872F3D #3D872F
tetradic
#2F3D87 #872F69 #87792F #2F874D
square
#2F3D87 #872F69 #87792F #2F874D
split-complementary
#2F3D87 #874D2F #69872F
monochromatic
#0F142C #1F285A #2F3D87 #3F52B4 #6676CA

Accessibility & contrast

On white

9.82
#2F3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F3D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D87
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D87#FFFFFF#000000##FFFFFF
##2F3D871.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C488A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3d87;
/* rgb */ color: rgb(47, 61, 135);
/* oklch */ color: oklch(39.2% 0.124 271.5);
Tailwind
colors: {
  custom: {
    50: '#7172aa',
    500: '#2f3d87',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d87;
$custom-light: #7172aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d87",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 230.455,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.392,
    "c": 0.12422,
    "h": 271.5
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#2F3D87
secondary
#B1A461
accent
#C250D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3D87

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

Preview Lab → · Contrast checker → · Palette generator →

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