#2F43A5#2F43A5

#2F43A5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.159 H 269.6°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2F43A5
RGBrgb(47, 67, 165)
HSLhsl(230, 56%, 42%)
HSVhsv(230, 72%, 65%)
CMYKcmyk(71.5%, 59.4%, 0%, 35.3%)
CIE-LABlab(32.56, 26.50, -55.19)
CIE-LCHlch(32.56, 61.22, 295.65°)
OKLaboklab(42.88% -0.001 -0.1592)
OKLCHoklch(42.88% 0.159 269.6)
XYZxyz(9.9687, 7.3343, 36.4803)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F43A5 #A5912F
analogous
#2F7EA5 #2F43A5 #562FA5
triadic
#2F43A5 #A52F43 #43A52F
tetradic
#2F43A5 #A52F7E #A5912F #2FA556
square
#2F43A5 #A52F7E #A5912F #2FA556
split-complementary
#2F43A5 #A5562F #7EA52F
monochromatic
#141C46 #213075 #2F43A5 #475DCB #7687D8

Accessibility & contrast

On white

8.51
#2F43A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F43A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F43A5
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F43A5#FFFFFF#000000##FFFFFF
##2F43A51.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f43a5;
/* rgb */ color: rgb(47, 67, 165);
/* oklch */ color: oklch(42.9% 0.159 269.6);
Tailwind
colors: {
  custom: {
    50: '#7876c0',
    500: '#2f43a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f43a5;
$custom-light: #7876c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f43a5",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 165
  },
  "hsl": {
    "h": 229.831,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42879,
    "c": 0.15916,
    "h": 269.6
  },
  "luminance": 0.07335
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F43A5

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

Preview Lab → · Contrast checker → · Palette generator →

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