#2F2288#2F2288

#2F2288 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.160 H 279.6°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2F2288
RGBrgb(47, 34, 136)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(65.4%, 75%, 0%, 46.7%)
CIE-LABlab(22.04, 37.18, -54.63)
CIE-LCHlch(22.04, 66.08, 304.24°)
OKLaboklab(34.41% 0.0268 -0.1577)
OKLCHoklch(34.41% 0.16 279.6)
XYZxyz(6.1868, 3.5255, 23.6422)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2288 #7B8822
analogous
#224888 #2F2288 #622288
triadic
#2F2288 #882F22 #22882F
tetradic
#2F2288 #882248 #7B8822 #228862
square
#2F2288 #882248 #7B8822 #228862
split-complementary
#2F2288 #886222 #488822
monochromatic
#0D0A26 #1E1657 #2F2288 #402EB9 #6251D3

Accessibility & contrast

On white

12.32
#2F2288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2288
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2288#FFFFFF#000000##FFFFFF
##2F22881.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2288;
/* rgb */ color: rgb(47, 34, 136);
/* oklch */ color: oklch(34.4% 0.160 279.6);
Tailwind
colors: {
  custom: {
    50: '#745fac',
    500: '#2f2288',
    950: '#000000',
  },
}
SCSS
$custom: #2f2288;
$custom-light: #745fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2288",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 247.647,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.1599,
    "h": 279.6
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#2F2288
secondary
#AAB74F
accent
#E345CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2288

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

Preview Lab → · Contrast checker → · Palette generator →

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