#2F45B3#2F45B3

#2F45B3 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.5% C 0.176 H 269.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2F45B3
RGBrgb(47, 69, 179)
HSLhsl(230, 58%, 44%)
HSVhsv(230, 74%, 70%)
CMYKcmyk(73.7%, 61.5%, 0%, 29.8%)
CIE-LABlab(34.22, 30.36, -60.83)
CIE-LCHlch(34.22, 67.99, 296.53°)
OKLaboklab(44.47% -0.0025 -0.1757)
OKLCHoklch(44.47% 0.176 269.2)
XYZxyz(11.4343, 8.1141, 43.6026)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45B3 #B39D2F
analogous
#2F87B3 #2F45B3 #5B2FB3
triadic
#2F45B3 #B32F45 #45B32F
tetradic
#2F45B3 #B32F87 #B39D2F #2FB35B
square
#2F45B3 #B32F87 #B39D2F #2FB35B
split-complementary
#2F45B3 #B35B2F #87B32F
monochromatic
#162052 #223283 #2F45B3 #4F64D1 #7F8FDD

Accessibility & contrast

On white

8.01
#2F45B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F45B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45B3
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45B3#FFFFFF#000000##FFFFFF
##2F45B31.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f45b3;
/* rgb */ color: rgb(47, 69, 179);
/* oklch */ color: oklch(44.5% 0.176 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b78cb',
    500: '#2f45b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f45b3;
$custom-light: #7b78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45b3",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 230,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44472,
    "c": 0.17571,
    "h": 269.2
  },
  "luminance": 0.08115
}

Semantic roles & 50–950 ramp

primary
#2F45B3
secondary
#C6B978
accent
#C846E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F45B3

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

Preview Lab → · Contrast checker → · Palette generator →

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