#2F42C1#2F42C1

#2F42C1 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.198 H 269.7°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2F42C1
RGBrgb(47, 66, 193)
HSLhsl(232, 61%, 47%)
HSVhsv(232, 76%, 76%)
CMYKcmyk(75.6%, 65.8%, 0%, 24.3%)
CIE-LABlab(34.70, 37.37, -68.29)
CIE-LCHlch(34.70, 77.85, 298.69°)
OKLaboklab(45.2% -0.0012 -0.1976)
OKLCHoklch(45.2% 0.198 269.7)
XYZxyz(12.7428, 8.3496, 51.3818)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42C1 #C1AE2F
analogous
#2F8BC1 #2F42C1 #652FC1
triadic
#2F42C1 #C12F42 #42C12F
tetradic
#2F42C1 #C12F8B #C1AE2F #2FC165
square
#2F42C1 #C12F8B #C1AE2F #2FC165
split-complementary
#2F42C1 #C1652F #8BC12F
monochromatic
#17205F #233190 #2F42C1 #5768D6 #8894E2

Accessibility & contrast

On white

7.86
#2F42C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F42C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42C1
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42C1#FFFFFF#000000##FFFFFF
##2F42C11.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f42c1;
/* rgb */ color: rgb(47, 66, 193);
/* oklch */ color: oklch(45.2% 0.198 269.7);
Tailwind
colors: {
  custom: {
    50: '#7e76d5',
    500: '#2f42c1',
    950: '#000000',
  },
}
SCSS
$custom: #2f42c1;
$custom-light: #7e76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42c1",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 232.192,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45201,
    "c": 0.19758,
    "h": 269.7
  },
  "luminance": 0.08351
}

Semantic roles & 50–950 ramp

primary
#2F42C1
secondary
#CCC280
accent
#CF44E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #2F42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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