#2F3F87#2F3F87

#2F3F87 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.121 H 270.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2F3F87
RGBrgb(47, 63, 135)
HSLhsl(229, 48%, 36%)
HSVhsv(229, 65%, 53%)
CMYKcmyk(65.2%, 53.3%, 0%, 47.1%)
CIE-LABlab(29.18, 18.01, -42.36)
CIE-LCHlch(29.18, 46.03, 293.03°)
OKLaboklab(39.62% 0.0011 -0.1215)
OKLCHoklch(39.62% 0.122 270.5)
XYZxyz(7.3215, 5.9080, 23.6715)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F87 #87772F
analogous
#2F6B87 #2F3F87 #4B2F87
triadic
#2F3F87 #872F3F #3F872F
tetradic
#2F3F87 #872F6B #87772F #2F874B
square
#2F3F87 #872F6B #87772F #2F874B
split-complementary
#2F3F87 #874B2F #6B872F
monochromatic
#0F152C #1F2A5A #2F3F87 #3F54B4 #6679CA

Accessibility & contrast

On white

9.63
#2F3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F87
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F87#FFFFFF#000000##FFFFFF
##2F3F871.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3f87;
/* rgb */ color: rgb(47, 63, 135);
/* oklch */ color: oklch(39.6% 0.121 270.5);
Tailwind
colors: {
  custom: {
    50: '#7173aa',
    500: '#2f3f87',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f87;
$custom-light: #7173aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f87",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 229.091,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39624,
    "c": 0.1215,
    "h": 270.5
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#2F3F87
secondary
#B1A261
accent
#BF50D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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