#2F2187#2F2187

#2F2187 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.160 H 280.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#2F2187
RGBrgb(47, 33, 135)
HSLhsl(248, 61%, 33%)
HSVhsv(248, 76%, 53%)
CMYKcmyk(65.2%, 75.6%, 0%, 47.1%)
CIE-LABlab(21.73, 37.43, -54.51)
CIE-LCHlch(21.73, 66.12, 304.48°)
OKLaboklab(34.16% 0.0277 -0.1573)
OKLCHoklch(34.16% 0.16 280)
XYZxyz(6.0879, 3.4408, 23.2603)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2187 #798721
analogous
#214687 #2F2187 #622187
triadic
#2F2187 #872F21 #21872F
tetradic
#2F2187 #872146 #798721 #218762
square
#2F2187 #872146 #798721 #218762
split-complementary
#2F2187 #876221 #468721
monochromatic
#0D0925 #1E1556 #2F2187 #402DB8 #614FD4

Accessibility & contrast

On white

12.44
#2F2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2187
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2187#FFFFFF#000000##FFFFFF
##2F21871.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2187;
/* rgb */ color: rgb(47, 33, 135);
/* oklch */ color: oklch(34.2% 0.160 280.0);
Tailwind
colors: {
  custom: {
    50: '#745eab',
    500: '#2f2187',
    950: '#000000',
  },
}
SCSS
$custom: #2f2187;
$custom-light: #745eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2187",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 248.235,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.15971,
    "h": 280
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#2F2187
secondary
#A8B74D
accent
#E444CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2187

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

Preview Lab → · Contrast checker → · Palette generator →

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