#2F3D86#2F3D86

#2F3D86 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.123 H 271.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2F3D86
RGBrgb(47, 61, 134)
HSLhsl(230, 48%, 35%)
HSVhsv(230, 65%, 53%)
CMYKcmyk(64.9%, 54.5%, 0%, 47.5%)
CIE-LABlab(28.54, 19.00, -42.77)
CIE-LCHlch(28.54, 46.80, 293.95°)
OKLaboklab(39.12% 0.0031 -0.1227)
OKLCHoklch(39.12% 0.123 271.4)
XYZxyz(7.1427, 5.6624, 23.2662)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D86 #86782F
analogous
#2F6886 #2F3D86 #4C2F86
triadic
#2F3D86 #862F3D #3D862F
tetradic
#2F3D86 #862F68 #86782F #2F864C
square
#2F3D86 #862F68 #86782F #2F864C
split-complementary
#2F3D86 #864C2F #68862F
monochromatic
#0F142B #1F2859 #2F3D86 #3F52B3 #6676C9

Accessibility & contrast

On white

9.85
#2F3D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F3D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D86
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D86#FFFFFF#000000##FFFFFF
##2F3D861.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3d86;
/* rgb */ color: rgb(47, 61, 134);
/* oklch */ color: oklch(39.1% 0.123 271.4);
Tailwind
colors: {
  custom: {
    50: '#7172aa',
    500: '#2f3d86',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d86;
$custom-light: #7172aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d86",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 134
  },
  "hsl": {
    "h": 230.345,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.12274,
    "h": 271.4
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3D86

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

Preview Lab → · Contrast checker → · Palette generator →

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