#2F3386#2F3386

#2F3386 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.136 H 275.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2F3386
RGBrgb(47, 51, 134)
HSLhsl(237, 48%, 35%)
HSVhsv(237, 65%, 53%)
CMYKcmyk(64.9%, 61.9%, 0%, 47.5%)
CIE-LABlab(25.84, 25.76, -47.15)
CIE-LCHlch(25.84, 53.73, 298.65°)
OKLaboklab(37.1% 0.0129 -0.1357)
OKLCHoklch(37.1% 0.136 275.4)
XYZxyz(6.6578, 4.6927, 23.1046)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3386 #86822F
analogous
#2F5F86 #2F3386 #562F86
triadic
#2F3386 #862F33 #33862F
tetradic
#2F3386 #862F5F #86822F #2F8656
square
#2F3386 #862F5F #86822F #2F8656
split-complementary
#2F3386 #86562F #5F862F
monochromatic
#0F112B #1F2259 #2F3386 #3F44B3 #666BC9

Accessibility & contrast

On white

10.83
#2F3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3386
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3386#FFFFFF#000000##FFFFFF
##2F33861.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f3386;
/* rgb */ color: rgb(47, 51, 134);
/* oklch */ color: oklch(37.1% 0.136 275.4);
Tailwind
colors: {
  custom: {
    50: '#726aaa',
    500: '#2f3386',
    950: '#000000',
  },
}
SCSS
$custom: #2f3386;
$custom-light: #726aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3386",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 237.241,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37105,
    "c": 0.13632,
    "h": 275.4
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#2F3386
secondary
#B0AD60
accent
#D150D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F3386

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

Preview Lab → · Contrast checker → · Palette generator →

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