#2F45A9#2F45A9

#2F45A9 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.162 H 269.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2F45A9
RGBrgb(47, 69, 169)
HSLhsl(229, 56%, 42%)
HSVhsv(229, 72%, 66%)
CMYKcmyk(72.2%, 59.2%, 0%, 33.7%)
CIE-LABlab(33.40, 26.67, -56.21)
CIE-LCHlch(33.40, 62.22, 295.38°)
OKLaboklab(43.61% -0.0025 -0.1621)
OKLCHoklch(43.61% 0.162 269.1)
XYZxyz(10.4594, 7.7241, 38.4681)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A9 #A9932F
analogous
#2F82A9 #2F45A9 #562FA9
triadic
#2F45A9 #A92F45 #45A92F
tetradic
#2F45A9 #A92F82 #A9932F #2FA956
square
#2F45A9 #A92F82 #A9932F #2FA956
split-complementary
#2F45A9 #A9562F #82A92F
monochromatic
#141E49 #223179 #2F45A9 #4961CC #798ADA

Accessibility & contrast

On white

8.25
#2F45A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F45A9
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A9#FFFFFF#000000##FFFFFF
##2F45A91.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f45a9;
/* rgb */ color: rgb(47, 69, 169);
/* oklch */ color: oklch(43.6% 0.162 269.1);
Tailwind
colors: {
  custom: {
    50: '#7878c3',
    500: '#2f45a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a9;
$custom-light: #7878c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a9",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 169
  },
  "hsl": {
    "h": 229.18,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43609,
    "c": 0.16215,
    "h": 269.1
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#2F45A9
secondary
#C2B372
accent
#C448E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F45A9

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

Preview Lab → · Contrast checker → · Palette generator →

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