#2F43AB#2F43AB

#2F43AB is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.4% C 0.167 H 269.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2F43AB
RGBrgb(47, 67, 171)
HSLhsl(230, 57%, 43%)
HSVhsv(230, 73%, 67%)
CMYKcmyk(72.5%, 60.8%, 0%, 32.9%)
CIE-LABlab(33.04, 28.72, -57.99)
CIE-LCHlch(33.04, 64.71, 296.35°)
OKLaboklab(43.4% -0.001 -0.1674)
OKLCHoklch(43.4% 0.167 269.7)
XYZxyz(10.5276, 7.5578, 39.4242)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F43AB #AB972F
analogous
#2F81AB #2F43AB #592FAB
triadic
#2F43AB #AB2F43 #43AB2F
tetradic
#2F43AB #AB2F81 #AB972F #2FAB59
square
#2F43AB #AB2F81 #AB972F #2FAB59
split-complementary
#2F43AB #AB592F #81AB2F
monochromatic
#151D4B #22307B #2F43AB #4A5FCD #7A8ADA

Accessibility & contrast

On white

8.36
#2F43AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F43AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F43AB
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F43AB#FFFFFF#000000##FFFFFF
##2F43AB1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f43ab;
/* rgb */ color: rgb(47, 67, 171);
/* oklch */ color: oklch(43.4% 0.167 269.7);
Tailwind
colors: {
  custom: {
    50: '#7977c5',
    500: '#2f43ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f43ab;
$custom-light: #7977c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f43ab",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 171
  },
  "hsl": {
    "h": 230.323,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43395,
    "c": 0.16737,
    "h": 269.7
  },
  "luminance": 0.07559
}

Semantic roles & 50–950 ramp

primary
#2F43AB
secondary
#C3B673
accent
#C848E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F43AB

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

Preview Lab → · Contrast checker → · Palette generator →

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