#2F227C#2F227C

#2F227C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.144 H 281.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2F227C
RGBrgb(47, 34, 124)
HSLhsl(249, 57%, 31%)
HSVhsv(249, 73%, 49%)
CMYKcmyk(62.1%, 72.6%, 0%, 51.4%)
CIE-LABlab(20.84, 33.20, -49.02)
CIE-LCHlch(20.84, 59.21, 304.11°)
OKLaboklab(33.19% 0.0292 -0.1412)
OKLCHoklch(33.19% 0.144 281.7)
XYZxyz(5.3813, 3.2033, 19.3996)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F227C #6F7C22
analogous
#22427C #2F227C #5C227C
triadic
#2F227C #7C2F22 #227C2F
tetradic
#2F227C #7C2242 #6F7C22 #227C5C
square
#2F227C #7C2242 #6F7C22 #227C5C
split-complementary
#2F227C #7C5C22 #427C22
monochromatic
#0B081C #1D154C #2F227C #412FAC #5E4BCE

Accessibility & contrast

On white

12.80
#2F227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F227C
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F227C#FFFFFF#000000##FFFFFF
##2F227C1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f227c;
/* rgb */ color: rgb(47, 34, 124);
/* oklch */ color: oklch(33.2% 0.144 281.7);
Tailwind
colors: {
  custom: {
    50: '#715ea3',
    500: '#2f227c',
    950: '#000000',
  },
}
SCSS
$custom: #2f227c;
$custom-light: #715ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f227c",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 248.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3319,
    "c": 0.14424,
    "h": 281.7
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#2F227C
secondary
#A0AF4B
accent
#E048CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F227C

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

Preview Lab → · Contrast checker → · Palette generator →

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