#2F45AB#2F45AB

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

Color values

HEX#2F45AB
RGBrgb(47, 69, 171)
HSLhsl(229, 57%, 43%)
HSVhsv(229, 73%, 67%)
CMYKcmyk(72.5%, 59.6%, 0%, 32.9%)
CIE-LABlab(33.56, 27.41, -57.15)
CIE-LCHlch(33.56, 63.38, 295.62°)
OKLaboklab(43.78% -0.0025 -0.1649)
OKLCHoklch(43.78% 0.165 269.1)
XYZxyz(10.6486, 7.7998, 39.4645)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45AB #AB952F
analogous
#2F83AB #2F45AB #572FAB
triadic
#2F45AB #AB2F45 #45AB2F
tetradic
#2F45AB #AB2F83 #AB952F #2FAB57
square
#2F45AB #AB2F83 #AB952F #2FAB57
split-complementary
#2F45AB #AB572F #83AB2F
monochromatic
#151E4B #22327B #2F45AB #4A61CD #7A8BDA

Accessibility & contrast

On white

8.20
#2F45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F45AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45AB
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45AB#FFFFFF#000000##FFFFFF
##2F45AB1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f45ab;
/* rgb */ color: rgb(47, 69, 171);
/* oklch */ color: oklch(43.8% 0.165 269.1);
Tailwind
colors: {
  custom: {
    50: '#7978c5',
    500: '#2f45ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f45ab;
$custom-light: #7978c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45ab",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 229.355,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.16489,
    "h": 269.1
  },
  "luminance": 0.07801
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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