#2F229C#2F229C

#2F229C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.185 H 276.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2F229C
RGBrgb(47, 34, 156)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 61%)
CMYKcmyk(69.9%, 78.2%, 0%, 38.8%)
CIE-LABlab(24.15, 43.67, -63.52)
CIE-LCHlch(24.15, 77.08, 304.51°)
OKLaboklab(36.53% 0.022 -0.1836)
OKLCHoklch(36.53% 0.185 276.8)
XYZxyz(7.7431, 4.1480, 31.8386)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F229C #8F9C22
analogous
#22529C #2F229C #6C229C
triadic
#2F229C #9C2F22 #229C2F
tetradic
#2F229C #9C2252 #8F9C22 #229C6C
square
#2F229C #9C2252 #8F9C22 #229C6C
split-complementary
#2F229C #9C6C22 #529C22
monochromatic
#110C38 #20176A #2F229C #3E2DCE #6A5DDC

Accessibility & contrast

On white

11.48
#2F229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F229C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F229C#FFFFFF#000000##FFFFFF
##2F229C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f229c;
/* rgb */ color: rgb(47, 34, 156);
/* oklch */ color: oklch(36.5% 0.185 276.8);
Tailwind
colors: {
  custom: {
    50: '#7860ba',
    500: '#2f229c',
    950: '#000000',
  },
}
SCSS
$custom: #2f229c;
$custom-light: #7860ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f229c",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 246.393,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36532,
    "c": 0.18487,
    "h": 276.8
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#2F229C
secondary
#B5C05A
accent
#E741D5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F229C

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

Preview Lab → · Contrast checker → · Palette generator →

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