#2F227D#2F227D

#2F227D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.146 H 281.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2F227D
RGBrgb(47, 34, 125)
HSLhsl(249, 57%, 31%)
HSVhsv(249, 73%, 49%)
CMYKcmyk(62.4%, 72.8%, 0%, 51%)
CIE-LABlab(20.94, 33.53, -49.50)
CIE-LCHlch(20.94, 59.79, 304.12°)
OKLaboklab(33.29% 0.029 -0.1426)
OKLCHoklch(33.29% 0.146 281.5)
XYZxyz(5.4448, 3.2287, 19.7343)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F227D #707D22
analogous
#22427D #2F227D #5C227D
triadic
#2F227D #7D2F22 #227D2F
tetradic
#2F227D #7D2242 #707D22 #227D5C
square
#2F227D #7D2242 #707D22 #227D5C
split-complementary
#2F227D #7D5C22 #427D22
monochromatic
#0B081D #1D154D #2F227D #412FAD #5E4BCE

Accessibility & contrast

On white

12.76
#2F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F227D
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F227D#FFFFFF#000000##FFFFFF
##2F227D1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f227d;
/* rgb */ color: rgb(47, 34, 125);
/* oklch */ color: oklch(33.3% 0.146 281.5);
Tailwind
colors: {
  custom: {
    50: '#725ea4',
    500: '#2f227d',
    950: '#000000',
  },
}
SCSS
$custom: #2f227d;
$custom-light: #725ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f227d",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 248.571,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3329,
    "c": 0.14558,
    "h": 281.5
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#2F227D
secondary
#A1B04B
accent
#E047CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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