#2F227B#2F227B

#2F227B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.143 H 281.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2F227B
RGBrgb(47, 34, 123)
HSLhsl(249, 57%, 31%)
HSVhsv(249, 72%, 48%)
CMYKcmyk(61.8%, 72.4%, 0%, 51.8%)
CIE-LABlab(20.74, 32.87, -48.54)
CIE-LCHlch(20.74, 58.62, 304.10°)
OKLaboklab(33.09% 0.0294 -0.1398)
OKLCHoklch(33.09% 0.143 281.9)
XYZxyz(5.3184, 3.1781, 19.0682)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F227B #6E7B22
analogous
#22417B #2F227B #5B227B
triadic
#2F227B #7B2F22 #227B2F
tetradic
#2F227B #7B2241 #6E7B22 #227B5B
square
#2F227B #7B2241 #6E7B22 #227B5B
split-complementary
#2F227B #7B5B22 #417B22
monochromatic
#0A071B #1D154B #2F227B #412FAB #5D4ACD

Accessibility & contrast

On white

12.84
#2F227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F227B
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F227B#FFFFFF#000000##FFFFFF
##2F227B1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f227b;
/* rgb */ color: rgb(47, 34, 123);
/* oklch */ color: oklch(33.1% 0.143 281.9);
Tailwind
colors: {
  custom: {
    50: '#715ea2',
    500: '#2f227b',
    950: '#000000',
  },
}
SCSS
$custom: #2f227b;
$custom-light: #715ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f227b",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 248.764,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33092,
    "c": 0.14291,
    "h": 281.9
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#2F227B
secondary
#9FAE4B
accent
#E048CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F227B

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

Preview Lab → · Contrast checker → · Palette generator →

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