#2F3181#2F3181

#2F3181 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.132 H 276.5°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2F3181
RGBrgb(47, 49, 129)
HSLhsl(239, 47%, 35%)
HSVhsv(239, 64%, 51%)
CMYKcmyk(63.6%, 62%, 0%, 49.4%)
CIE-LABlab(24.91, 25.29, -45.54)
CIE-LCHlch(24.91, 52.09, 299.05°)
OKLaboklab(36.29% 0.015 -0.131)
OKLCHoklch(36.29% 0.132 276.5)
XYZxyz(6.2318, 4.3855, 21.2827)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3181 #817F2F
analogous
#2F5A81 #2F3181 #562F81
triadic
#2F3181 #812F31 #31812F
tetradic
#2F3181 #812F5A #817F2F #2F8156
square
#2F3181 #812F5A #817F2F #2F8156
split-complementary
#2F3181 #81562F #5A812F
monochromatic
#0E0F27 #1F2054 #2F3181 #3F42AE #6466C6

Accessibility & contrast

On white

11.19
#2F3181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F3181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3181
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3181#FFFFFF#000000##FFFFFF
##2F31811.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3181;
/* rgb */ color: rgb(47, 49, 129);
/* oklch */ color: oklch(36.3% 0.132 276.5);
Tailwind
colors: {
  custom: {
    50: '#7169a6',
    500: '#2f3181',
    950: '#000000',
  },
}
SCSS
$custom: #2f3181;
$custom-light: #7169a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3181",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 238.537,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36286,
    "c": 0.13184,
    "h": 276.5
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#2F3181
secondary
#ADAB5E
accent
#D352D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F3181

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

Preview Lab → · Contrast checker → · Palette generator →

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