#2F3188#2F3188

#2F3188 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.142 H 275.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2F3188
RGBrgb(47, 49, 136)
HSLhsl(239, 49%, 36%)
HSVhsv(239, 65%, 53%)
CMYKcmyk(65.4%, 64%, 0%, 46.7%)
CIE-LABlab(25.50, 27.81, -48.96)
CIE-LCHlch(25.50, 56.31, 299.60°)
OKLaboklab(36.91% 0.0147 -0.141)
OKLCHoklch(36.91% 0.142 275.9)
XYZxyz(6.7131, 4.5780, 23.8177)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3188 #88862F
analogous
#2F5D88 #2F3188 #592F88
triadic
#2F3188 #882F31 #31882F
tetradic
#2F3188 #882F5D #88862F #2F8859
square
#2F3188 #882F5D #88862F #2F8859
split-complementary
#2F3188 #88592F #5D882F
monochromatic
#10102D #1F215B #2F3188 #3F41B5 #6769CA

Accessibility & contrast

On white

10.96
#2F3188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F3188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3188
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3188#FFFFFF#000000##FFFFFF
##2F31881.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f3188;
/* rgb */ color: rgb(47, 49, 136);
/* oklch */ color: oklch(36.9% 0.142 275.9);
Tailwind
colors: {
  custom: {
    50: '#7369ab',
    500: '#2f3188',
    950: '#000000',
  },
}
SCSS
$custom: #2f3188;
$custom-light: #7369ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3188",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 238.652,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36905,
    "c": 0.14179,
    "h": 275.9
  },
  "luminance": 0.04579
}

Semantic roles & 50–950 ramp

primary
#2F3188
secondary
#B1B061
accent
#D550D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F3188

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

Preview Lab → · Contrast checker → · Palette generator →

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