#2F45A3#2F45A3

#2F45A3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.1% C 0.154 H 269.0°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2F45A3
RGBrgb(47, 69, 163)
HSLhsl(229, 55%, 41%)
HSVhsv(229, 71%, 64%)
CMYKcmyk(71.2%, 57.7%, 0%, 36.1%)
CIE-LABlab(32.93, 24.43, -53.38)
CIE-LCHlch(32.93, 58.71, 294.59°)
OKLaboklab(43.11% -0.0027 -0.1538)
OKLCHoklch(43.11% 0.154 269)
XYZxyz(9.9090, 7.5039, 35.5694)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A3 #A38D2F
analogous
#2F7FA3 #2F45A3 #532FA3
triadic
#2F45A3 #A32F45 #45A32F
tetradic
#2F45A3 #A32F7F #A38D2F #2FA353
square
#2F45A3 #A32F7F #A38D2F #2FA353
split-complementary
#2F45A3 #A3532F #7FA32F
monochromatic
#141D44 #213173 #2F45A3 #465FCA #7588D7

Accessibility & contrast

On white

8.40
#2F45A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F45A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A3
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A3#FFFFFF#000000##FFFFFF
##2F45A31.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f45a3;
/* rgb */ color: rgb(47, 69, 163);
/* oklch */ color: oklch(43.1% 0.154 269.0);
Tailwind
colors: {
  custom: {
    50: '#7778bf',
    500: '#2f45a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a3;
$custom-light: #7778bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a3",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 228.621,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43107,
    "c": 0.15384,
    "h": 269
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#2F45A3
secondary
#BFB06F
accent
#C249DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F45A3

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

Preview Lab → · Contrast checker → · Palette generator →

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