#2F3381#2F3381

#2F3381 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.129 H 275.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2F3381
RGBrgb(47, 51, 129)
HSLhsl(237, 47%, 35%)
HSVhsv(237, 64%, 51%)
CMYKcmyk(63.6%, 60.5%, 0%, 49.4%)
CIE-LABlab(25.43, 23.95, -44.69)
CIE-LCHlch(25.43, 50.70, 298.19°)
OKLaboklab(36.67% 0.013 -0.1285)
OKLCHoklch(36.67% 0.129 275.8)
XYZxyz(6.3173, 4.5565, 21.3112)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3381 #817D2F
analogous
#2F5C81 #2F3381 #542F81
triadic
#2F3381 #812F33 #33812F
tetradic
#2F3381 #812F5C #817D2F #2F8154
square
#2F3381 #812F5C #817D2F #2F8154
split-complementary
#2F3381 #81542F #5C812F
monochromatic
#0E1027 #1F2154 #2F3381 #3F45AE #6469C6

Accessibility & contrast

On white

10.99
#2F3381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F3381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3381
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3381#FFFFFF#000000##FFFFFF
##2F33811.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f3381;
/* rgb */ color: rgb(47, 51, 129);
/* oklch */ color: oklch(36.7% 0.129 275.8);
Tailwind
colors: {
  custom: {
    50: '#716aa6',
    500: '#2f3381',
    950: '#000000',
  },
}
SCSS
$custom: #2f3381;
$custom-light: #716aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3381",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 237.073,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36674,
    "c": 0.12912,
    "h": 275.8
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#2F3381
secondary
#ADAA5E
accent
#D052D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F3381

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

Preview Lab → · Contrast checker → · Palette generator →

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