#2F2397#2F2397

#2F2397 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.178 H 277.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2F2397
RGBrgb(47, 35, 151)
HSLhsl(246, 62%, 36%)
HSVhsv(246, 77%, 59%)
CMYKcmyk(68.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.80, 41.52, -61.03)
CIE-LCHlch(23.80, 73.81, 304.23°)
OKLaboklab(36.13% 0.0227 -0.1763)
OKLCHoklch(36.13% 0.178 277.3)
XYZxyz(7.3574, 4.0401, 29.6642)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2397 #8B9723
analogous
#235197 #2F2397 #692397
triadic
#2F2397 #972F23 #23972F
tetradic
#2F2397 #972351 #8B9723 #239769
square
#2F2397 #972351 #8B9723 #239769
split-complementary
#2F2397 #976923 #519723
monochromatic
#100C34 #201765 #2F2397 #3E2FC9 #685BD9

Accessibility & contrast

On white

11.61
#2F2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2397
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2397#FFFFFF#000000##FFFFFF
##2F23971.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2397;
/* rgb */ color: rgb(47, 35, 151);
/* oklch */ color: oklch(36.1% 0.178 277.3);
Tailwind
colors: {
  custom: {
    50: '#7760b7',
    500: '#2f2397',
    950: '#000000',
  },
}
SCSS
$custom: #2f2397;
$custom-light: #7760b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2397",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 246.207,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36125,
    "c": 0.17778,
    "h": 277.3
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#2F2397
secondary
#B3BE58
accent
#E542D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2397

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

Preview Lab → · Contrast checker → · Palette generator →

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