#2F42B2#2F42B2

#2F42B2 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.178 H 269.9°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#2F42B2
RGBrgb(47, 66, 178)
HSLhsl(231, 58%, 44%)
HSVhsv(231, 74%, 70%)
CMYKcmyk(73.6%, 62.9%, 0%, 30.2%)
CIE-LABlab(33.38, 31.95, -61.61)
CIE-LCHlch(33.38, 69.40, 297.41°)
OKLaboklab(43.83% -0.0004 -0.178)
OKLCHoklch(43.83% 0.178 269.9)
XYZxyz(11.1536, 7.7140, 43.0120)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B2 #B29F2F
analogous
#2F84B2 #2F42B2 #5E2FB2
triadic
#2F42B2 #B22F42 #42B22F
tetradic
#2F42B2 #B22F84 #B29F2F #2FB25E
square
#2F42B2 #B22F84 #B29F2F #2FB25E
split-complementary
#2F42B2 #B25E2F #84B22F
monochromatic
#151E51 #223082 #2F42B2 #4E61D0 #7E8CDD

Accessibility & contrast

On white

8.26
#2F42B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F42B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B2#FFFFFF#000000##FFFFFF
##2F42B21.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f42b2;
/* rgb */ color: rgb(47, 66, 178);
/* oklch */ color: oklch(43.8% 0.178 269.9);
Tailwind
colors: {
  custom: {
    50: '#7b76ca',
    500: '#2f42b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b2;
$custom-light: #7b76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b2",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 231.298,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43825,
    "c": 0.17801,
    "h": 269.9
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#2F42B2
secondary
#C6BA77
accent
#CB46E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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