#2F45A2#2F45A2

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

Color values

HEX#2F45A2
RGBrgb(47, 69, 162)
HSLhsl(229, 55%, 41%)
HSVhsv(229, 71%, 64%)
CMYKcmyk(71%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.85, 24.06, -52.91)
CIE-LCHlch(32.85, 58.12, 294.45°)
OKLaboklab(43.02% -0.0027 -0.1524)
OKLCHoklch(43.02% 0.152 269)
XYZxyz(9.8198, 7.4682, 35.0994)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A2 #A28C2F
analogous
#2F7EA2 #2F45A2 #522FA2
triadic
#2F45A2 #A22F45 #45A22F
tetradic
#2F45A2 #A22F7E #A28C2F #2FA252
square
#2F45A2 #A22F7E #A28C2F #2FA252
split-complementary
#2F45A2 #A2522F #7EA22F
monochromatic
#131D43 #213173 #2F45A2 #455EC9 #7587D7

Accessibility & contrast

On white

8.42
#2F45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A2#FFFFFF#000000##FFFFFF
##2F45A21.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f45a2;
/* rgb */ color: rgb(47, 69, 162);
/* oklch */ color: oklch(43.0% 0.152 269.0);
Tailwind
colors: {
  custom: {
    50: '#7778be',
    500: '#2f45a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a2;
$custom-light: #7778be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a2",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 228.522,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43024,
    "c": 0.15244,
    "h": 269
  },
  "luminance": 0.07469
}

Semantic roles & 50–950 ramp

primary
#2F45A2
secondary
#BFAF6E
accent
#C249DE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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