#2F3387#2F3387

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

Color values

HEX#2F3387
RGBrgb(47, 51, 135)
HSLhsl(237, 48%, 36%)
HSVhsv(237, 65%, 53%)
CMYKcmyk(65.2%, 62.2%, 0%, 47.1%)
CIE-LABlab(25.92, 26.13, -47.64)
CIE-LCHlch(25.92, 54.33, 298.74°)
OKLaboklab(37.19% 0.0129 -0.1371)
OKLCHoklch(37.19% 0.138 275.4)
XYZxyz(6.7279, 4.7207, 23.4736)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3387 #87832F
analogous
#2F5F87 #2F3387 #572F87
triadic
#2F3387 #872F33 #33872F
tetradic
#2F3387 #872F5F #87832F #2F8757
square
#2F3387 #872F5F #87832F #2F8757
split-complementary
#2F3387 #87572F #5F872F
monochromatic
#0F112C #1F225A #2F3387 #3F44B4 #666BCA

Accessibility & contrast

On white

10.80
#2F3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3387
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3387#FFFFFF#000000##FFFFFF
##2F33871.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f3387;
/* rgb */ color: rgb(47, 51, 135);
/* oklch */ color: oklch(37.2% 0.138 275.4);
Tailwind
colors: {
  custom: {
    50: '#726aab',
    500: '#2f3387',
    950: '#000000',
  },
}
SCSS
$custom: #2f3387;
$custom-light: #726aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3387",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 237.273,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37192,
    "c": 0.13774,
    "h": 275.4
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#2F3387
secondary
#B1AD61
accent
#D250D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F3387

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

Preview Lab → · Contrast checker → · Palette generator →

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