#2F42C0#2F42C0

#2F42C0 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.196 H 269.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2F42C0
RGBrgb(47, 66, 192)
HSLhsl(232, 61%, 47%)
HSVhsv(232, 76%, 75%)
CMYKcmyk(75.5%, 65.6%, 0%, 24.7%)
CIE-LABlab(34.61, 37.01, -67.86)
CIE-LCHlch(34.61, 77.29, 298.61°)
OKLaboklab(45.11% -0.0011 -0.1963)
OKLCHoklch(45.11% 0.196 269.7)
XYZxyz(12.6317, 8.3052, 50.7963)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42C0 #C0AD2F
analogous
#2F8BC0 #2F42C0 #652FC0
triadic
#2F42C0 #C02F42 #42C02F
tetradic
#2F42C0 #C02F8B #C0AD2F #2FC065
square
#2F42C0 #C02F8B #C0AD2F #2FC065
split-complementary
#2F42C0 #C0652F #8BC02F
monochromatic
#17205E #23318F #2F42C0 #5667D6 #8893E2

Accessibility & contrast

On white

7.89
#2F42C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F42C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42C0
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42C0#FFFFFF#000000##FFFFFF
##2F42C01.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004BBE
Tritanopia (blue-blind)
#00647B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f42c0;
/* rgb */ color: rgb(47, 66, 192);
/* oklch */ color: oklch(45.1% 0.196 269.7);
Tailwind
colors: {
  custom: {
    50: '#7e76d4',
    500: '#2f42c0',
    950: '#000000',
  },
}
SCSS
$custom: #2f42c0;
$custom-light: #7e76d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42c0",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 232.138,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45107,
    "c": 0.19629,
    "h": 269.7
  },
  "luminance": 0.08307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F42C0

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

Preview Lab → · Contrast checker → · Palette generator →

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