#2F2588#2F2588

#2F2588 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.157 H 279.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2F2588
RGBrgb(47, 37, 136)
HSLhsl(246, 57%, 34%)
HSVhsv(246, 73%, 53%)
CMYKcmyk(65.4%, 72.8%, 0%, 46.7%)
CIE-LABlab(22.67, 35.42, -53.59)
CIE-LCHlch(22.67, 64.23, 303.46°)
OKLaboklab(34.86% 0.0246 -0.1546)
OKLCHoklch(34.86% 0.157 279)
XYZxyz(6.2764, 3.7046, 23.6721)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2588 #7E8825
analogous
#254D88 #2F2588 #612588
triadic
#2F2588 #882F25 #25882F
tetradic
#2F2588 #88254D #7E8825 #258861
square
#2F2588 #88254D #7E8825 #258861
split-complementary
#2F2588 #886125 #4D8825
monochromatic
#0E0B28 #1E1858 #2F2588 #4032B8 #6356D1

Accessibility & contrast

On white

12.06
#2F2588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F2588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2588
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2588#FFFFFF#000000##FFFFFF
##2F25881.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2588;
/* rgb */ color: rgb(47, 37, 136);
/* oklch */ color: oklch(34.9% 0.157 279.0);
Tailwind
colors: {
  custom: {
    50: '#7461ac',
    500: '#2f2588',
    950: '#000000',
  },
}
SCSS
$custom: #2f2588;
$custom-light: #7461ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2588",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 246.061,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34856,
    "c": 0.15656,
    "h": 279
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#2F2588
secondary
#ACB653
accent
#E047D1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2588

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

Preview Lab → · Contrast checker → · Palette generator →

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