#2F2097#2F2097

#2F2097 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.181 H 277.7°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2F2097
RGBrgb(47, 32, 151)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(68.9%, 78.8%, 0%, 40.8%)
CIE-LABlab(23.24, 43.13, -61.96)
CIE-LCHlch(23.24, 75.49, 304.84°)
OKLaboklab(35.73% 0.0243 -0.179)
OKLCHoklch(35.73% 0.181 277.7)
XYZxyz(7.2729, 3.8711, 29.6361)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2097 #889720
analogous
#204C97 #2F2097 #6A2097
triadic
#2F2097 #972F20 #20972F
tetradic
#2F2097 #97204C #889720 #20976A
square
#2F2097 #97204C #889720 #20976A
split-complementary
#2F2097 #976A20 #4C9720
monochromatic
#100B32 #1F1564 #2F2097 #3F2BC9 #6756DB

Accessibility & contrast

On white

11.83
#2F2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2097
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2097#FFFFFF#000000##FFFFFF
##2F20971.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2097;
/* rgb */ color: rgb(47, 32, 151);
/* oklch */ color: oklch(35.7% 0.181 277.7);
Tailwind
colors: {
  custom: {
    50: '#775fb7',
    500: '#2f2097',
    950: '#000000',
  },
}
SCSS
$custom: #2f2097;
$custom-light: #775fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2097",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 247.563,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3573,
    "c": 0.18064,
    "h": 277.7
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#2F2097
secondary
#B1BF54
accent
#E840D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2097

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

Preview Lab → · Contrast checker → · Palette generator →

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