#2F45AA#2F45AA

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

Color values

HEX#2F45AA
RGBrgb(47, 69, 170)
HSLhsl(229, 57%, 43%)
HSVhsv(229, 72%, 67%)
CMYKcmyk(72.4%, 59.4%, 0%, 33.3%)
CIE-LABlab(33.48, 27.04, -56.68)
CIE-LCHlch(33.48, 62.80, 295.50°)
OKLaboklab(43.69% -0.0025 -0.1635)
OKLCHoklch(43.69% 0.164 269.1)
XYZxyz(10.5536, 7.7618, 38.9644)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45AA #AA942F
analogous
#2F83AA #2F45AA #562FAA
triadic
#2F45AA #AA2F45 #45AA2F
tetradic
#2F45AA #AA2F83 #AA942F #2FAA56
square
#2F45AA #AA2F83 #AA942F #2FAA56
split-complementary
#2F45AA #AA562F #83AA2F
monochromatic
#141E4A #22327A #2F45AA #4961CD #798BDA

Accessibility & contrast

On white

8.23
#2F45AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F45AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45AA
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45AA#FFFFFF#000000##FFFFFF
##2F45AA1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f45aa;
/* rgb */ color: rgb(47, 69, 170);
/* oklch */ color: oklch(43.7% 0.164 269.1);
Tailwind
colors: {
  custom: {
    50: '#7978c4',
    500: '#2f45aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f45aa;
$custom-light: #7978c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45aa",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 229.268,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43694,
    "c": 0.16352,
    "h": 269.1
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#2F45AA
secondary
#C2B472
accent
#C548E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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