#2F207D#2F207D

#2F207D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.148 H 282.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2F207D
RGBrgb(47, 32, 125)
HSLhsl(250, 59%, 31%)
HSVhsv(250, 74%, 49%)
CMYKcmyk(62.4%, 74.4%, 0%, 51%)
CIE-LABlab(20.51, 34.72, -50.20)
CIE-LCHlch(20.51, 61.04, 304.67°)
OKLaboklab(32.98% 0.0307 -0.1447)
OKLCHoklch(32.98% 0.148 282)
XYZxyz(5.3893, 3.1177, 19.7158)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F207D #6E7D20
analogous
#203F7D #2F207D #5D207D
triadic
#2F207D #7D2F20 #207D2F
tetradic
#2F207D #7D203F #6E7D20 #207D5D
square
#2F207D #7D203F #6E7D20 #207D5D
split-complementary
#2F207D #7D5D20 #3F7D20
monochromatic
#0A071C #1D144C #2F207D #412CAE #5D47D0

Accessibility & contrast

On white

12.93
#2F207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F207D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F207D#FFFFFF#000000##FFFFFF
##2F207D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f207d;
/* rgb */ color: rgb(47, 32, 125);
/* oklch */ color: oklch(33.0% 0.148 282.0);
Tailwind
colors: {
  custom: {
    50: '#725da4',
    500: '#2f207d',
    950: '#000000',
  },
}
SCSS
$custom: #2f207d;
$custom-light: #725da4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f207d",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 249.677,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32984,
    "c": 0.14792,
    "h": 282
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#2F207D
secondary
#9FB049
accent
#E245C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F207D

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

Preview Lab → · Contrast checker → · Palette generator →

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