#2F42B0#2F42B0

#2F42B0 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.175 H 269.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F42B0
RGBrgb(47, 66, 176)
HSLhsl(231, 58%, 44%)
HSVhsv(231, 73%, 69%)
CMYKcmyk(73.3%, 62.5%, 0%, 31%)
CIE-LABlab(33.21, 31.22, -60.70)
CIE-LCHlch(33.21, 68.26, 297.21°)
OKLaboklab(43.65% -0.0004 -0.1753)
OKLCHoklch(43.65% 0.175 269.9)
XYZxyz(10.9543, 7.6342, 41.9621)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42B0 #B09D2F
analogous
#2F82B0 #2F42B0 #5C2FB0
triadic
#2F42B0 #B02F42 #42B02F
tetradic
#2F42B0 #B02F82 #B09D2F #2FB05C
square
#2F42B0 #B02F82 #B09D2F #2FB05C
split-complementary
#2F42B0 #B05C2F #82B02F
monochromatic
#151E4F #223080 #2F42B0 #4D60CF #7D8BDC

Accessibility & contrast

On white

8.31
#2F42B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F42B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42B0
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42B0#FFFFFF#000000##FFFFFF
##2F42B01.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f42b0;
/* rgb */ color: rgb(47, 66, 176);
/* oklch */ color: oklch(43.6% 0.175 269.9);
Tailwind
colors: {
  custom: {
    50: '#7a76c9',
    500: '#2f42b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f42b0;
$custom-light: #7a76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42b0",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 231.163,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43647,
    "c": 0.17534,
    "h": 269.9
  },
  "luminance": 0.07635
}

Semantic roles & 50–950 ramp

primary
#2F42B0
secondary
#C5B976
accent
#CA47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F42B0

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

Preview Lab → · Contrast checker → · Palette generator →

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