#2F3E86#2F3E86

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

Color values

HEX#2F3E86
RGBrgb(47, 62, 134)
HSLhsl(230, 48%, 35%)
HSVhsv(230, 65%, 53%)
CMYKcmyk(64.9%, 53.7%, 0%, 47.5%)
CIE-LABlab(28.83, 18.31, -42.31)
CIE-LCHlch(28.83, 46.11, 293.40°)
OKLaboklab(39.33% 0.0021 -0.1214)
OKLCHoklch(39.33% 0.121 271)
XYZxyz(7.1965, 5.7702, 23.2841)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E86 #86772F
analogous
#2F6986 #2F3E86 #4B2F86
triadic
#2F3E86 #862F3E #3E862F
tetradic
#2F3E86 #862F69 #86772F #2F864B
square
#2F3E86 #862F69 #86772F #2F864B
split-complementary
#2F3E86 #864B2F #69862F
monochromatic
#0F142B #1F2959 #2F3E86 #3F53B3 #6677C9

Accessibility & contrast

On white

9.75
#2F3E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F3E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E86
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E86#FFFFFF#000000##FFFFFF
##2F3E861.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124889
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3e86;
/* rgb */ color: rgb(47, 62, 134);
/* oklch */ color: oklch(39.3% 0.121 271.0);
Tailwind
colors: {
  custom: {
    50: '#7173aa',
    500: '#2f3e86',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e86;
$custom-light: #7173aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e86",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 134
  },
  "hsl": {
    "h": 229.655,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39333,
    "c": 0.12138,
    "h": 271
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#2F3E86
secondary
#B0A360
accent
#C050D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F3E86

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

Preview Lab → · Contrast checker → · Palette generator →

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