#2F218A#2F218A

#2F218A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.164 H 279.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2F218A
RGBrgb(47, 33, 138)
HSLhsl(248, 61%, 34%)
HSVhsv(248, 76%, 54%)
CMYKcmyk(65.9%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.04, 38.41, -55.88)
CIE-LCHlch(22.04, 67.80, 304.50°)
OKLaboklab(34.47% 0.027 -0.1613)
OKLCHoklch(34.47% 0.164 279.5)
XYZxyz(6.3021, 3.5265, 24.3884)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F218A #7C8A21
analogous
#21478A #2F218A #63218A
triadic
#2F218A #8A2F21 #218A2F
tetradic
#2F218A #8A2147 #7C8A21 #218A63
square
#2F218A #8A2147 #7C8A21 #218A63
split-complementary
#2F218A #8A6321 #478A21
monochromatic
#0D0927 #1E1559 #2F218A #402DBB #6250D5

Accessibility & contrast

On white

12.31
#2F218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F218A
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F218A#FFFFFF#000000##FFFFFF
##2F218A1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f218a;
/* rgb */ color: rgb(47, 33, 138);
/* oklch */ color: oklch(34.5% 0.164 279.5);
Tailwind
colors: {
  custom: {
    50: '#745ead',
    500: '#2f218a',
    950: '#000000',
  },
}
SCSS
$custom: #2f218a;
$custom-light: #745ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2f218a",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 248,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3447,
    "c": 0.16352,
    "h": 279.5
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#2F218A
secondary
#AAB94E
accent
#E543CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F218A

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

Preview Lab → · Contrast checker → · Palette generator →

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