#2F229D#2F229D

#2F229D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.186 H 276.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2F229D
RGBrgb(47, 34, 157)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 62%)
CMYKcmyk(70.1%, 78.3%, 0%, 38.4%)
CIE-LABlab(24.26, 43.99, -63.95)
CIE-LCHlch(24.26, 77.62, 304.52°)
OKLaboklab(36.64% 0.0217 -0.1848)
OKLCHoklch(36.64% 0.186 276.7)
XYZxyz(7.8281, 4.1820, 32.2864)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F229D #909D22
analogous
#22539D #2F229D #6C229D
triadic
#2F229D #9D2F22 #229D2F
tetradic
#2F229D #9D2253 #909D22 #229D6C
square
#2F229D #9D2253 #909D22 #229D6C
split-complementary
#2F229D #9D6C22 #539D22
monochromatic
#110C38 #20176B #2F229D #3E2DCF #6B5DDC

Accessibility & contrast

On white

11.43
#2F229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F229D
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F229D#FFFFFF#000000##FFFFFF
##2F229D1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f229d;
/* rgb */ color: rgb(47, 34, 157);
/* oklch */ color: oklch(36.6% 0.186 276.7);
Tailwind
colors: {
  custom: {
    50: '#7960bb',
    500: '#2f229d',
    950: '#000000',
  },
}
SCSS
$custom: #2f229d;
$custom-light: #7960bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f229d",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 246.341,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.18609,
    "h": 276.7
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#2F229D
secondary
#B6C15A
accent
#E740D6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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