#2864CA#2864CA

#2864CA is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.3% C 0.171 H 260.4°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#2864CA
RGBrgb(40, 100, 202)
HSLhsl(218, 67%, 47%)
HSVhsv(218, 80%, 79%)
CMYKcmyk(80.2%, 50.5%, 0%, 20.8%)
CIE-LABlab(43.98, 18.03, -58.41)
CIE-LCHlch(43.98, 61.13, 287.16°)
OKLaboklab(52.3% -0.0285 -0.1682)
OKLCHoklch(52.3% 0.171 260.4)
XYZxyz(16.0890, 13.8278, 57.6867)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2864CA #CA8E28
analogous
#28B5CA #2864CA #3D28CA
triadic
#2864CA #CA2864 #64CA28
tetradic
#2864CA #CA28B5 #CA8E28 #28CA3D
square
#2864CA #CA28B5 #CA8E28 #28CA3D
split-complementary
#2864CA #CA3D28 #B5CA28
monochromatic
#143164 #1E4B97 #2864CA #5286DD #85AAE7

Accessibility & contrast

On white

5.58
#2864CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#2864CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2864CA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2864CA#FFFFFF#000000##FFFFFF
##2864CA1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2270CE
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#007D8D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2864ca;
/* rgb */ color: rgb(40, 100, 202);
/* oklch */ color: oklch(52.3% 0.171 260.4);
Tailwind
colors: {
  custom: {
    50: '#7c8fdb',
    500: '#2864ca',
    950: '#000000',
  },
}
SCSS
$custom: #2864ca;
$custom-light: #7c8fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#2864ca",
  "rgb": {
    "r": 40,
    "g": 100,
    "b": 202
  },
  "hsl": {
    "h": 217.778,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.52304,
    "c": 0.17059,
    "h": 260.4
  },
  "luminance": 0.1383
}

Semantic roles & 50–950 ramp

primary
#2864CA
secondary
#D0B27E
accent
#AA3EEA
background
#F8F8FD
surface
#EFF0FB
border
#CACBD4
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2864CA

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

Preview Lab → · Contrast checker → · Palette generator →

#2864CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva