#2F42B5#2F42B5

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

Color values

HEX#2F42B5
RGBrgb(47, 66, 181)
HSLhsl(231, 59%, 45%)
HSVhsv(231, 74%, 71%)
CMYKcmyk(74%, 63.5%, 0%, 29%)
CIE-LABlab(33.64, 33.04, -62.97)
CIE-LCHlch(33.64, 71.11, 297.69°)
OKLaboklab(44.1% -0.0005 -0.182)
OKLCHoklch(44.1% 0.182 269.8)
XYZxyz(11.4581, 7.8358, 44.6157)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B5 #B5A22F
analogous
#2F85B5 #2F42B5 #5F2FB5
triadic
#2F42B5 #B52F42 #42B52F
tetradic
#2F42B5 #B52F85 #B5A22F #2FB55F
square
#2F42B5 #B52F85 #B5A22F #2FB55F
split-complementary
#2F42B5 #B55F2F #85B52F
monochromatic
#161F54 #223084 #2F42B5 #5062D1 #808EDE

Accessibility & contrast

On white

8.18
#2F42B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F42B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B5
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B5#FFFFFF#000000##FFFFFF
##2F42B51.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f42b5;
/* rgb */ color: rgb(47, 66, 181);
/* oklch */ color: oklch(44.1% 0.182 269.8);
Tailwind
colors: {
  custom: {
    50: '#7b76cc',
    500: '#2f42b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b5;
$custom-light: #7b76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b5",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 231.493,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44096,
    "c": 0.18198,
    "h": 269.8
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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