#2F227E#2F227E

#2F227E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.147 H 281.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2F227E
RGBrgb(47, 34, 126)
HSLhsl(248, 58%, 31%)
HSVhsv(248, 73%, 49%)
CMYKcmyk(62.7%, 73%, 0%, 50.6%)
CIE-LABlab(21.04, 33.87, -49.97)
CIE-LCHlch(21.04, 60.37, 304.12°)
OKLaboklab(33.39% 0.0289 -0.144)
OKLCHoklch(33.39% 0.147 281.3)
XYZxyz(5.5090, 3.2544, 20.0725)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F227E #717E22
analogous
#22437E #2F227E #5D227E
triadic
#2F227E #7E2F22 #227E2F
tetradic
#2F227E #7E2243 #717E22 #227E5D
square
#2F227E #7E2243 #717E22 #227E5D
split-complementary
#2F227E #7E5D22 #437E22
monochromatic
#0B081E #1D154E #2F227E #412FAE #5E4CCF

Accessibility & contrast

On white

12.72
#2F227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F227E
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F227E#FFFFFF#000000##FFFFFF
##2F227E1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f227e;
/* rgb */ color: rgb(47, 34, 126);
/* oklch */ color: oklch(33.4% 0.147 281.3);
Tailwind
colors: {
  custom: {
    50: '#725ea4',
    500: '#2f227e',
    950: '#000000',
  },
}
SCSS
$custom: #2f227e;
$custom-light: #725ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f227e",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 248.478,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33389,
    "c": 0.1469,
    "h": 281.3
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#2F227E
secondary
#A2B14B
accent
#E147CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F227E

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

Preview Lab → · Contrast checker → · Palette generator →

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