#2F42A1#2F42A1

#2F42A1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.155 H 269.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2F42A1
RGBrgb(47, 66, 161)
HSLhsl(230, 55%, 41%)
HSVhsv(230, 71%, 63%)
CMYKcmyk(70.8%, 59%, 0%, 36.9%)
CIE-LABlab(31.97, 25.68, -53.73)
CIE-LCHlch(31.97, 59.55, 295.54°)
OKLaboklab(42.34% -0.0003 -0.1549)
OKLCHoklch(42.34% 0.155 269.9)
XYZxyz(9.5513, 7.0730, 34.5732)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42A1 #A18E2F
analogous
#2F7BA1 #2F42A1 #552FA1
triadic
#2F42A1 #A12F42 #42A12F
tetradic
#2F42A1 #A12F7B #A18E2F #2FA155
square
#2F42A1 #A12F7B #A18E2F #2FA155
split-complementary
#2F42A1 #A1552F #7BA12F
monochromatic
#131B42 #212F72 #2F42A1 #455BC9 #7484D6

Accessibility & contrast

On white

8.70
#2F42A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F42A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42A1
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42A1#FFFFFF#000000##FFFFFF
##2F42A11.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f42a1;
/* rgb */ color: rgb(47, 66, 161);
/* oklch */ color: oklch(42.3% 0.155 269.9);
Tailwind
colors: {
  custom: {
    50: '#7776be',
    500: '#2f42a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f42a1;
$custom-light: #7776be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42a1",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 230,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42344,
    "c": 0.15489,
    "h": 269.9
  },
  "luminance": 0.07074
}

Semantic roles & 50–950 ramp

primary
#2F42A1
secondary
#BEB16E
accent
#C54ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F42A1

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

Preview Lab → · Contrast checker → · Palette generator →

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