#2F3786#2F3786

#2F3786 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.131 H 274.0°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2F3786
RGBrgb(47, 55, 134)
HSLhsl(234, 48%, 35%)
HSVhsv(234, 65%, 53%)
CMYKcmyk(64.9%, 59%, 0%, 47.5%)
CIE-LABlab(26.90, 23.07, -45.43)
CIE-LCHlch(26.90, 50.96, 296.92°)
OKLaboklab(37.89% 0.0091 -0.1306)
OKLCHoklch(37.89% 0.131 274)
XYZxyz(6.8401, 5.0574, 23.1653)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3786 #867E2F
analogous
#2F6286 #2F3786 #522F86
triadic
#2F3786 #862F37 #37862F
tetradic
#2F3786 #862F62 #867E2F #2F8652
square
#2F3786 #862F62 #867E2F #2F8652
split-complementary
#2F3786 #86522F #62862F
monochromatic
#0F122B #1F2459 #2F3786 #3F4AB3 #666FC9

Accessibility & contrast

On white

10.44
#2F3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F3786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3786
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3786#FFFFFF#000000##FFFFFF
##2F37861.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3786;
/* rgb */ color: rgb(47, 55, 134);
/* oklch */ color: oklch(37.9% 0.131 274.0);
Tailwind
colors: {
  custom: {
    50: '#726daa',
    500: '#2f3786',
    950: '#000000',
  },
}
SCSS
$custom: #2f3786;
$custom-light: #726daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3786",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 234.483,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37889,
    "c": 0.13094,
    "h": 274
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#2F3786
secondary
#B0A960
accent
#CB50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2F3786

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

Preview Lab → · Contrast checker → · Palette generator →

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