#2F45A4#2F45A4

#2F45A4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.2% C 0.155 H 269.0°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2F45A4
RGBrgb(47, 69, 164)
HSLhsl(229, 55%, 41%)
HSVhsv(229, 71%, 64%)
CMYKcmyk(71.3%, 57.9%, 0%, 35.7%)
CIE-LABlab(33.01, 24.80, -53.86)
CIE-LCHlch(33.01, 59.30, 294.73°)
OKLaboklab(43.19% -0.0027 -0.1552)
OKLCHoklch(43.19% 0.155 269)
XYZxyz(9.9989, 7.5399, 36.0432)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A4 #A48E2F
analogous
#2F80A4 #2F45A4 #542FA4
triadic
#2F45A4 #A42F45 #45A42F
tetradic
#2F45A4 #A42F80 #A48E2F #2FA454
square
#2F45A4 #A42F80 #A48E2F #2FA454
split-complementary
#2F45A4 #A4542F #80A42F
monochromatic
#141D45 #213174 #2F45A4 #465FCA #7688D8

Accessibility & contrast

On white

8.37
#2F45A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F45A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A4
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A4#FFFFFF#000000##FFFFFF
##2F45A41.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f45a4;
/* rgb */ color: rgb(47, 69, 164);
/* oklch */ color: oklch(43.2% 0.155 269.0);
Tailwind
colors: {
  custom: {
    50: '#7778c0',
    500: '#2f45a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a4;
$custom-light: #7778c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a4",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 228.718,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.15524,
    "h": 269
  },
  "luminance": 0.07541
}

Semantic roles & 50–950 ramp

primary
#2F45A4
secondary
#C0B06F
accent
#C349DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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