#2F42A2#2F42A2

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

Color values

HEX#2F42A2
RGBrgb(47, 66, 162)
HSLhsl(230, 55%, 41%)
HSVhsv(230, 71%, 64%)
CMYKcmyk(71%, 59.3%, 0%, 36.5%)
CIE-LABlab(32.05, 26.05, -54.21)
CIE-LCHlch(32.05, 60.14, 295.67°)
OKLaboklab(42.43% -0.0003 -0.1563)
OKLCHoklch(42.43% 0.156 269.9)
XYZxyz(9.6399, 7.1084, 35.0395)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42A2 #A28F2F
analogous
#2F7BA2 #2F42A2 #552FA2
triadic
#2F42A2 #A22F42 #42A22F
tetradic
#2F42A2 #A22F7B #A28F2F #2FA255
square
#2F42A2 #A22F7B #A28F2F #2FA255
split-complementary
#2F42A2 #A2552F #7BA22F
monochromatic
#131B43 #212F73 #2F42A2 #455BC9 #7585D7

Accessibility & contrast

On white

8.67
#2F42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42A2
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42A2#FFFFFF#000000##FFFFFF
##2F42A21.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f42a2;
/* rgb */ color: rgb(47, 66, 162);
/* oklch */ color: oklch(42.4% 0.156 269.9);
Tailwind
colors: {
  custom: {
    50: '#7776be',
    500: '#2f42a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f42a2;
$custom-light: #7776be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42a2",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 230.087,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42428,
    "c": 0.15628,
    "h": 269.9
  },
  "luminance": 0.07109
}

Semantic roles & 50–950 ramp

primary
#2F42A2
secondary
#BFB16E
accent
#C649DE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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