#2F45AC#2F45AC

#2F45AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.166 H 269.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2F45AC
RGBrgb(47, 69, 172)
HSLhsl(229, 57%, 43%)
HSVhsv(229, 73%, 67%)
CMYKcmyk(72.7%, 59.9%, 0%, 32.5%)
CIE-LABlab(33.64, 27.78, -57.61)
CIE-LCHlch(33.64, 63.96, 295.74°)
OKLaboklab(43.86% -0.0025 -0.1662)
OKLCHoklch(43.86% 0.166 269.1)
XYZxyz(10.7442, 7.8380, 39.9684)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45AC #AC962F
analogous
#2F83AC #2F45AC #572FAC
triadic
#2F45AC #AC2F45 #45AC2F
tetradic
#2F45AC #AC2F83 #AC962F #2FAC57
square
#2F45AC #AC2F83 #AC962F #2FAC57
split-complementary
#2F45AC #AC572F #83AC2F
monochromatic
#151E4C #22327C #2F45AC #4B62CE #7B8CDB

Accessibility & contrast

On white

8.18
#2F45AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F45AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45AC
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45AC#FFFFFF#000000##FFFFFF
##2F45AC1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f45ac;
/* rgb */ color: rgb(47, 69, 172);
/* oklch */ color: oklch(43.9% 0.166 269.1);
Tailwind
colors: {
  custom: {
    50: '#7978c6',
    500: '#2f45ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f45ac;
$custom-light: #7978c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45ac",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 229.44,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.16626,
    "h": 269.1
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#2F45AC
secondary
#C3B574
accent
#C547E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F45AC

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

Preview Lab → · Contrast checker → · Palette generator →

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