#2F45A0#2F45A0

#2F45A0 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.150 H 268.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2F45A0
RGBrgb(47, 69, 160)
HSLhsl(228, 55%, 41%)
HSVhsv(228, 71%, 63%)
CMYKcmyk(70.6%, 56.9%, 0%, 37.3%)
CIE-LABlab(32.70, 23.31, -51.95)
CIE-LCHlch(32.70, 56.94, 294.16°)
OKLaboklab(42.86% -0.0028 -0.1496)
OKLCHoklch(42.86% 0.15 268.9)
XYZxyz(9.6434, 7.3977, 34.1706)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A0 #A08A2F
analogous
#2F7DA0 #2F45A0 #522FA0
triadic
#2F45A0 #A02F45 #45A02F
tetradic
#2F45A0 #A02F7D #A08A2F #2FA052
square
#2F45A0 #A02F7D #A08A2F #2FA052
split-complementary
#2F45A0 #A0522F #7DA02F
monochromatic
#131C41 #213171 #2F45A0 #445EC8 #7387D6

Accessibility & contrast

On white

8.47
#2F45A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F45A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A0
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A0#FFFFFF#000000##FFFFFF
##2F45A01.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f45a0;
/* rgb */ color: rgb(47, 69, 160);
/* oklch */ color: oklch(42.9% 0.150 268.9);
Tailwind
colors: {
  custom: {
    50: '#7678bd',
    500: '#2f45a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a0;
$custom-light: #7678bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a0",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 160
  },
  "hsl": {
    "h": 228.319,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4286,
    "c": 0.14965,
    "h": 268.9
  },
  "luminance": 0.07399
}

Semantic roles & 50–950 ramp

primary
#2F45A0
secondary
#BEAE6D
accent
#C14ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F45A0

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

Preview Lab → · Contrast checker → · Palette generator →

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