#2F2297#2F2297

#2F2297 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.179 H 277.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2F2297
RGBrgb(47, 34, 151)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 77%, 59%)
CMYKcmyk(68.9%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.61, 42.07, -61.34)
CIE-LCHlch(23.61, 74.38, 304.44°)
OKLaboklab(35.99% 0.0232 -0.1772)
OKLCHoklch(35.99% 0.179 277.5)
XYZxyz(7.3284, 3.9821, 29.6546)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2297 #8A9722
analogous
#225097 #2F2297 #6A2297
triadic
#2F2297 #972F22 #22972F
tetradic
#2F2297 #972250 #8A9722 #22976A
square
#2F2297 #972250 #8A9722 #22976A
split-complementary
#2F2297 #976A22 #509722
monochromatic
#100C33 #1F1765 #2F2297 #3F2DC9 #685ADA

Accessibility & contrast

On white

11.69
#2F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2297
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2297#FFFFFF#000000##FFFFFF
##2F22971.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2297;
/* rgb */ color: rgb(47, 34, 151);
/* oklch */ color: oklch(36.0% 0.179 277.5);
Tailwind
colors: {
  custom: {
    50: '#7760b7',
    500: '#2f2297',
    950: '#000000',
  },
}
SCSS
$custom: #2f2297;
$custom-light: #7760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2297",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 246.667,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3599,
    "c": 0.17876,
    "h": 277.5
  },
  "luminance": 0.03983
}

Semantic roles & 50–950 ramp

primary
#2F2297
secondary
#B3BE57
accent
#E642D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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