#2F229F#2F229F

#2F229F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.189 H 276.5°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2F229F
RGBrgb(47, 34, 159)
HSLhsl(246, 65%, 38%)
HSVhsv(246, 79%, 62%)
CMYKcmyk(70.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.48, 44.62, -64.80)
CIE-LCHlch(24.48, 78.68, 304.55°)
OKLaboklab(36.86% 0.0212 -0.1873)
OKLCHoklch(36.86% 0.189 276.5)
XYZxyz(8.0003, 4.2509, 33.1931)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F229F #929F22
analogous
#22539F #2F229F #6D229F
triadic
#2F229F #9F2F22 #229F2F
tetradic
#2F229F #9F2253 #929F22 #229F6D
square
#2F229F #9F2253 #929F22 #229F6D
split-complementary
#2F229F #9F6D22 #539F22
monochromatic
#110C3A #20176D #2F229F #3E2DD1 #6C5FDD

Accessibility & contrast

On white

11.35
#2F229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F229F
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F229F#FFFFFF#000000##FFFFFF
##2F229F1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f229f;
/* rgb */ color: rgb(47, 34, 159);
/* oklch */ color: oklch(36.9% 0.189 276.5);
Tailwind
colors: {
  custom: {
    50: '#7960bd',
    500: '#2f229f',
    950: '#000000',
  },
}
SCSS
$custom: #2f229f;
$custom-light: #7960bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f229f",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 246.24,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3686,
    "c": 0.18851,
    "h": 276.5
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#2F229F
secondary
#B7C15B
accent
#E840D6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F229F

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

Preview Lab → · Contrast checker → · Palette generator →

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