#2F42B3#2F42B3

#2F42B3 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.179 H 269.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2F42B3
RGBrgb(47, 66, 179)
HSLhsl(231, 58%, 44%)
HSVhsv(231, 74%, 70%)
CMYKcmyk(73.7%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.47, 32.31, -62.06)
CIE-LCHlch(33.47, 69.97, 297.50°)
OKLaboklab(43.92% -0.0005 -0.1793)
OKLCHoklch(43.92% 0.179 269.9)
XYZxyz(11.2544, 7.7543, 43.5427)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B3 #B3A02F
analogous
#2F84B3 #2F42B3 #5E2FB3
triadic
#2F42B3 #B32F42 #42B32F
tetradic
#2F42B3 #B32F84 #B3A02F #2FB35E
square
#2F42B3 #B32F84 #B3A02F #2FB35E
split-complementary
#2F42B3 #B35E2F #84B32F
monochromatic
#161E52 #223083 #2F42B3 #4F61D1 #7F8DDD

Accessibility & contrast

On white

8.23
#2F42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F42B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B3
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B3#FFFFFF#000000##FFFFFF
##2F42B31.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f42b3;
/* rgb */ color: rgb(47, 66, 179);
/* oklch */ color: oklch(43.9% 0.179 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b76cb',
    500: '#2f42b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b3;
$custom-light: #7b76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b3",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 231.364,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43915,
    "c": 0.17934,
    "h": 269.9
  },
  "luminance": 0.07755
}

Semantic roles & 50–950 ramp

primary
#2F42B3
secondary
#C6BB78
accent
#CB46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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