#2F42A3#2F42A3

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

Color values

HEX#2F42A3
RGBrgb(47, 66, 163)
HSLhsl(230, 55%, 41%)
HSVhsv(230, 71%, 64%)
CMYKcmyk(71.2%, 59.5%, 0%, 36.1%)
CIE-LABlab(32.13, 26.42, -54.68)
CIE-LCHlch(32.13, 60.73, 295.79°)
OKLaboklab(42.51% -0.0003 -0.1577)
OKLCHoklch(42.51% 0.158 269.9)
XYZxyz(9.7291, 7.1441, 35.5095)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42A3 #A3902F
analogous
#2F7CA3 #2F42A3 #562FA3
triadic
#2F42A3 #A32F42 #42A32F
tetradic
#2F42A3 #A32F7C #A3902F #2FA356
square
#2F42A3 #A32F7C #A3902F #2FA356
split-complementary
#2F42A3 #A3562F #7CA32F
monochromatic
#141C44 #212F73 #2F42A3 #465BCA #7585D7

Accessibility & contrast

On white

8.65
#2F42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F42A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42A3
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42A3#FFFFFF#000000##FFFFFF
##2F42A31.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f42a3;
/* rgb */ color: rgb(47, 66, 163);
/* oklch */ color: oklch(42.5% 0.158 269.9);
Tailwind
colors: {
  custom: {
    50: '#7776bf',
    500: '#2f42a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f42a3;
$custom-light: #7776bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42a3",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 230.172,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42513,
    "c": 0.15766,
    "h": 269.9
  },
  "luminance": 0.07145
}

Semantic roles & 50–950 ramp

primary
#2F42A3
secondary
#BFB26F
accent
#C649DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F42A3

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

Preview Lab → · Contrast checker → · Palette generator →

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