#2F229A#2F229A

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

Color values

HEX#2F229A
RGBrgb(47, 34, 154)
HSLhsl(247, 64%, 37%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(69.5%, 77.9%, 0%, 39.6%)
CIE-LABlab(23.94, 43.03, -62.65)
CIE-LCHlch(23.94, 76.01, 304.48°)
OKLaboklab(36.32% 0.0225 -0.181)
OKLCHoklch(36.32% 0.182 277.1)
XYZxyz(7.5752, 4.0808, 30.9541)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F229A #8D9A22
analogous
#22519A #2F229A #6B229A
triadic
#2F229A #9A2F22 #229A2F
tetradic
#2F229A #9A2251 #8D9A22 #229A6B
square
#2F229A #9A2251 #8D9A22 #229A6B
split-complementary
#2F229A #9A6B22 #519A22
monochromatic
#100C36 #201768 #2F229A #3E2DCC #695BDB

Accessibility & contrast

On white

11.56
#2F229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F229A
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F229A#FFFFFF#000000##FFFFFF
##2F229A1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f229a;
/* rgb */ color: rgb(47, 34, 154);
/* oklch */ color: oklch(36.3% 0.182 277.1);
Tailwind
colors: {
  custom: {
    50: '#7860b9',
    500: '#2f229a',
    950: '#000000',
  },
}
SCSS
$custom: #2f229a;
$custom-light: #7860b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f229a",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 246.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36315,
    "c": 0.18243,
    "h": 277.1
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#2F229A
secondary
#B4BF58
accent
#E741D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F229A

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

Preview Lab → · Contrast checker → · Palette generator →

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