#2F42B4#2F42B4

#2F42B4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.181 H 269.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2F42B4
RGBrgb(47, 66, 180)
HSLhsl(231, 59%, 45%)
HSVhsv(231, 74%, 71%)
CMYKcmyk(73.9%, 63.3%, 0%, 29.4%)
CIE-LABlab(33.55, 32.68, -62.52)
CIE-LCHlch(33.55, 70.54, 297.60°)
OKLaboklab(44.01% -0.0005 -0.1807)
OKLCHoklch(44.01% 0.181 269.8)
XYZxyz(11.3559, 7.7949, 44.0772)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B4 #B4A12F
analogous
#2F84B4 #2F42B4 #5F2FB4
triadic
#2F42B4 #B42F42 #42B42F
tetradic
#2F42B4 #B42F84 #B4A12F #2FB45F
square
#2F42B4 #B42F84 #B4A12F #2FB45F
split-complementary
#2F42B4 #B45F2F #84B42F
monochromatic
#161E53 #223083 #2F42B4 #4F62D1 #808DDE

Accessibility & contrast

On white

8.21
#2F42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F42B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B4
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B4#FFFFFF#000000##FFFFFF
##2F42B41.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f42b4;
/* rgb */ color: rgb(47, 66, 180);
/* oklch */ color: oklch(44.0% 0.181 269.8);
Tailwind
colors: {
  custom: {
    50: '#7b76cb',
    500: '#2f42b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b4;
$custom-light: #7b76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b4",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 231.429,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44005,
    "c": 0.18066,
    "h": 269.8
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#2F42B4
secondary
#C7BB78
accent
#CC46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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