#2F2188#2F2188

#2F2188 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.161 H 279.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2F2188
RGBrgb(47, 33, 136)
HSLhsl(248, 61%, 33%)
HSVhsv(248, 76%, 53%)
CMYKcmyk(65.4%, 75.7%, 0%, 46.7%)
CIE-LABlab(21.83, 37.76, -54.97)
CIE-LCHlch(21.83, 66.68, 304.49°)
OKLaboklab(34.26% 0.0275 -0.1586)
OKLCHoklch(34.26% 0.161 279.8)
XYZxyz(6.1587, 3.4691, 23.6328)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2188 #7A8821
analogous
#214688 #2F2188 #622188
triadic
#2F2188 #882F21 #21882F
tetradic
#2F2188 #882146 #7A8821 #218862
square
#2F2188 #882146 #7A8821 #218862
split-complementary
#2F2188 #886221 #468821
monochromatic
#0D0925 #1E1557 #2F2188 #402DB9 #614FD4

Accessibility & contrast

On white

12.40
#2F2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2188
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2188#FFFFFF#000000##FFFFFF
##2F21881.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2188;
/* rgb */ color: rgb(47, 33, 136);
/* oklch */ color: oklch(34.3% 0.161 279.8);
Tailwind
colors: {
  custom: {
    50: '#745eac',
    500: '#2f2188',
    950: '#000000',
  },
}
SCSS
$custom: #2f2188;
$custom-light: #745eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2188",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 248.155,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.16099,
    "h": 279.8
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2188

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

Preview Lab → · Contrast checker → · Palette generator →

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