#2F227A#2F227A

#2F227A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.142 H 282.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2F227A
RGBrgb(47, 34, 122)
HSLhsl(249, 56%, 31%)
HSVhsv(249, 72%, 48%)
CMYKcmyk(61.5%, 72.1%, 0%, 52.2%)
CIE-LABlab(20.65, 32.53, -48.07)
CIE-LCHlch(20.65, 58.04, 304.09°)
OKLaboklab(32.99% 0.0296 -0.1384)
OKLCHoklch(32.99% 0.142 282.1)
XYZxyz(5.2561, 3.1532, 18.7402)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F227A #6D7A22
analogous
#22417A #2F227A #5B227A
triadic
#2F227A #7A2F22 #227A2F
tetradic
#2F227A #7A2241 #6D7A22 #227A5B
square
#2F227A #7A2241 #6D7A22 #227A5B
split-complementary
#2F227A #7A5B22 #417A22
monochromatic
#0A071A #1D154A #2F227A #412FAA #5D4ACD

Accessibility & contrast

On white

12.88
#2F227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F227A
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F227A#FFFFFF#000000##FFFFFF
##2F227A1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f227a;
/* rgb */ color: rgb(47, 34, 122);
/* oklch */ color: oklch(33.0% 0.142 282.1);
Tailwind
colors: {
  custom: {
    50: '#715ea1',
    500: '#2f227a',
    950: '#000000',
  },
}
SCSS
$custom: #2f227a;
$custom-light: #715ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f227a",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 248.864,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32993,
    "c": 0.14158,
    "h": 282.1
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#2F227A
secondary
#9EAD4B
accent
#E048C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F227A

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

Preview Lab → · Contrast checker → · Palette generator →

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