#2F2088#2F2088

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

Color values

HEX#2F2088
RGBrgb(47, 32, 136)
HSLhsl(249, 62%, 33%)
HSVhsv(249, 76%, 53%)
CMYKcmyk(65.4%, 76.5%, 0%, 46.7%)
CIE-LABlab(21.63, 38.32, -55.29)
CIE-LCHlch(21.63, 67.27, 304.72°)
OKLaboklab(34.12% 0.0281 -0.1596)
OKLCHoklch(34.12% 0.162 280)
XYZxyz(6.1313, 3.4145, 23.6237)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2088 #798820
analogous
#204588 #2F2088 #632088
triadic
#2F2088 #882F20 #20882F
tetradic
#2F2088 #882045 #798820 #208863
square
#2F2088 #882045 #798820 #208863
split-complementary
#2F2088 #886320 #458820
monochromatic
#0D0925 #1E1456 #2F2088 #402CBA #614DD5

Accessibility & contrast

On white

12.48
#2F2088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2088
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2088#FFFFFF#000000##FFFFFF
##2F20881.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2088;
/* rgb */ color: rgb(47, 32, 136);
/* oklch */ color: oklch(34.1% 0.162 280.0);
Tailwind
colors: {
  custom: {
    50: '#745eac',
    500: '#2f2088',
    950: '#000000',
  },
}
SCSS
$custom: #2f2088;
$custom-light: #745eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2088",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 248.654,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3412,
    "c": 0.16204,
    "h": 280
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#2F2088
secondary
#A8B84C
accent
#E543CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2088

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

Preview Lab → · Contrast checker → · Palette generator →

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