#2F45A6#2F45A6

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

Color values

HEX#2F45A6
RGBrgb(47, 69, 166)
HSLhsl(229, 56%, 42%)
HSVhsv(229, 72%, 65%)
CMYKcmyk(71.7%, 58.4%, 0%, 34.9%)
CIE-LABlab(33.16, 25.55, -54.80)
CIE-LCHlch(33.16, 60.47, 294.99°)
OKLaboklab(43.36% -0.0026 -0.158)
OKLCHoklch(43.36% 0.158 269.1)
XYZxyz(10.1810, 7.6127, 37.0019)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A6 #A6902F
analogous
#2F81A6 #2F45A6 #552FA6
triadic
#2F45A6 #A62F45 #45A62F
tetradic
#2F45A6 #A62F81 #A6902F #2FA655
square
#2F45A6 #A62F81 #A6902F #2FA655
split-complementary
#2F45A6 #A6552F #81A62F
monochromatic
#141D47 #213176 #2F45A6 #4760CB #7789D8

Accessibility & contrast

On white

8.32
#2F45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2F45A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A6
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A6#FFFFFF#000000##FFFFFF
##2F45A61.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f45a6;
/* rgb */ color: rgb(47, 69, 166);
/* oklch */ color: oklch(43.4% 0.158 269.1);
Tailwind
colors: {
  custom: {
    50: '#7878c1',
    500: '#2f45a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a6;
$custom-light: #7878c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a6",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 228.908,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43357,
    "c": 0.15801,
    "h": 269.1
  },
  "luminance": 0.07614
}

Semantic roles & 50–950 ramp

primary
#2F45A6
secondary
#C1B270
accent
#C349DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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