#2F229E#2F229E

#2F229E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.187 H 276.6°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2F229E
RGBrgb(47, 34, 158)
HSLhsl(246, 65%, 38%)
HSVhsv(246, 78%, 62%)
CMYKcmyk(70.3%, 78.5%, 0%, 38%)
CIE-LABlab(24.37, 44.31, -64.38)
CIE-LCHlch(24.37, 78.15, 304.54°)
OKLaboklab(36.75% 0.0215 -0.1861)
OKLCHoklch(36.75% 0.187 276.6)
XYZxyz(7.9139, 4.2163, 32.7379)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F229E #919E22
analogous
#22539E #2F229E #6D229E
triadic
#2F229E #9E2F22 #229E2F
tetradic
#2F229E #9E2253 #919E22 #229E6D
square
#2F229E #9E2253 #919E22 #229E6D
split-complementary
#2F229E #9E6D22 #539E22
monochromatic
#110C39 #20176C #2F229E #3E2DD0 #6B5EDC

Accessibility & contrast

On white

11.39
#2F229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F229E
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F229E#FFFFFF#000000##FFFFFF
##2F229E1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f229e;
/* rgb */ color: rgb(47, 34, 158);
/* oklch */ color: oklch(36.8% 0.187 276.6);
Tailwind
colors: {
  custom: {
    50: '#7960bc',
    500: '#2f229e',
    950: '#000000',
  },
}
SCSS
$custom: #2f229e;
$custom-light: #7960bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f229e",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 246.29,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3675,
    "c": 0.18731,
    "h": 276.6
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F229E

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

Preview Lab → · Contrast checker → · Palette generator →

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