#2F45C0#2F45C0

#2F45C0 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.193 H 269.1°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2F45C0
RGBrgb(47, 69, 192)
HSLhsl(231, 61%, 47%)
HSVhsv(231, 76%, 75%)
CMYKcmyk(75.5%, 64.1%, 0%, 24.7%)
CIE-LABlab(35.33, 35.11, -66.67)
CIE-LCHlch(35.33, 75.35, 297.77°)
OKLaboklab(45.64% -0.0029 -0.1928)
OKLCHoklch(45.64% 0.193 269.1)
XYZxyz(12.8116, 8.6650, 50.8563)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45C0 #C0AA2F
analogous
#2F8DC0 #2F45C0 #622FC0
triadic
#2F45C0 #C02F45 #45C02F
tetradic
#2F45C0 #C02F8D #C0AA2F #2FC062
square
#2F45C0 #C02F8D #C0AA2F #2FC062
split-complementary
#2F45C0 #C0622F #8DC02F
monochromatic
#17225E #23338F #2F45C0 #566AD6 #8895E2

Accessibility & contrast

On white

7.68
#2F45C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F45C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45C0
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45C0#FFFFFF#000000##FFFFFF
##2F45C01.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#00657C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f45c0;
/* rgb */ color: rgb(47, 69, 192);
/* oklch */ color: oklch(45.6% 0.193 269.1);
Tailwind
colors: {
  custom: {
    50: '#7e78d4',
    500: '#2f45c0',
    950: '#000000',
  },
}
SCSS
$custom: #2f45c0;
$custom-light: #7e78d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45c0",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 192
  },
  "hsl": {
    "h": 230.897,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45636,
    "c": 0.19284,
    "h": 269.1
  },
  "luminance": 0.08666
}

Semantic roles & 50–950 ramp

primary
#2F45C0
secondary
#CBC07F
accent
#CC44E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2F45C0

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

Preview Lab → · Contrast checker → · Palette generator →

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