#2F209C#2F209C

#2F209C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.187 H 277.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2F209C
RGBrgb(47, 32, 156)
HSLhsl(247, 66%, 37%)
HSVhsv(247, 79%, 61%)
CMYKcmyk(69.9%, 79.5%, 0%, 38.8%)
CIE-LABlab(23.79, 44.71, -64.11)
CIE-LCHlch(23.79, 78.16, 304.89°)
OKLaboklab(36.28% 0.023 -0.1853)
OKLCHoklch(36.28% 0.187 277.1)
XYZxyz(7.6876, 4.0370, 31.8201)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F209C #8D9C20
analogous
#204F9C #2F209C #6D209C
triadic
#2F209C #9C2F20 #209C2F
tetradic
#2F209C #9C204F #8D9C20 #209C6D
square
#2F209C #9C204F #8D9C20 #209C6D
split-complementary
#2F209C #9C6D20 #4F9C20
monochromatic
#100B36 #201669 #2F209C #3E2ACF #6959DD

Accessibility & contrast

On white

11.62
#2F209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F209C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F209C#FFFFFF#000000##FFFFFF
##2F209C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f209c;
/* rgb */ color: rgb(47, 32, 156);
/* oklch */ color: oklch(36.3% 0.187 277.1);
Tailwind
colors: {
  custom: {
    50: '#795fba',
    500: '#2f209c',
    950: '#000000',
  },
}
SCSS
$custom: #2f209c;
$custom-light: #795fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f209c",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 247.258,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36279,
    "c": 0.1867,
    "h": 277.1
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#2F209C
secondary
#B4C157
accent
#E93FD4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F209C

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

Preview Lab → · Contrast checker → · Palette generator →

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