#2F45B2#2F45B2

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

Color values

HEX#2F45B2
RGBrgb(47, 69, 178)
HSLhsl(230, 58%, 44%)
HSVhsv(230, 74%, 70%)
CMYKcmyk(73.6%, 61.2%, 0%, 30.2%)
CIE-LABlab(34.14, 30.00, -60.38)
CIE-LCHlch(34.14, 67.42, 296.42°)
OKLaboklab(44.38% -0.0025 -0.1743)
OKLCHoklch(44.38% 0.174 269.2)
XYZxyz(11.3335, 8.0737, 43.0719)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45B2 #B29C2F
analogous
#2F87B2 #2F45B2 #5B2FB2
triadic
#2F45B2 #B22F45 #45B22F
tetradic
#2F45B2 #B22F87 #B29C2F #2FB25B
square
#2F45B2 #B22F87 #B29C2F #2FB25B
split-complementary
#2F45B2 #B25B2F #87B22F
monochromatic
#151F51 #223282 #2F45B2 #4E64D0 #7E8EDD

Accessibility & contrast

On white

8.03
#2F45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F45B2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45B2#FFFFFF#000000##FFFFFF
##2F45B21.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f45b2;
/* rgb */ color: rgb(47, 69, 178);
/* oklch */ color: oklch(44.4% 0.174 269.2);
Tailwind
colors: {
  custom: {
    50: '#7a78ca',
    500: '#2f45b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f45b2;
$custom-light: #7a78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45b2",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 229.924,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44384,
    "c": 0.17437,
    "h": 269.2
  },
  "luminance": 0.08075
}

Semantic roles & 50–950 ramp

primary
#2F45B2
secondary
#C6B977
accent
#C746E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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