#2F20B3#2F20B3

#2F20B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.214 H 274.5°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2F20B3
RGBrgb(47, 32, 179)
HSLhsl(246, 70%, 41%)
HSVhsv(246, 82%, 70%)
CMYKcmyk(73.7%, 82.1%, 0%, 29.8%)
CIE-LABlab(26.42, 51.79, -73.67)
CIE-LCHlch(26.42, 90.05, 305.11°)
OKLaboklab(38.87% 0.0168 -0.213)
OKLCHoklch(38.87% 0.214 274.5)
XYZxyz(9.8228, 4.8910, 43.0655)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F20B3 #A4B320
analogous
#205BB3 #2F20B3 #7920B3
triadic
#2F20B3 #B32F20 #20B32F
tetradic
#2F20B3 #B3205B #A4B320 #20B379
square
#2F20B3 #B3205B #A4B320 #20B379
split-complementary
#2F20B3 #B37920 #5BB320
monochromatic
#140D4B #21177F #2F20B3 #4635DB #7669E4

Accessibility & contrast

On white

10.61
#2F20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F20B3
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F20B3#FFFFFF#000000##FFFFFF
##2F20B31.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f20b3;
/* rgb */ color: rgb(47, 32, 179);
/* oklch */ color: oklch(38.9% 0.214 274.5);
Tailwind
colors: {
  custom: {
    50: '#7e60cb',
    500: '#2f20b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f20b3;
$custom-light: #7e60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f20b3",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 246.122,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.21368,
    "h": 274.5
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#2F20B3
secondary
#C0CA65
accent
#EC3BDA
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2F20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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