#2831AF#2831AF

#2831AF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.195 H 270.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2831AF
RGBrgb(40, 49, 175)
HSLhsl(236, 63%, 42%)
HSVhsv(236, 77%, 69%)
CMYKcmyk(77.1%, 72%, 0%, 31.4%)
CIE-LABlab(28.75, 40.83, -67.44)
CIE-LCHlch(28.75, 78.84, 301.19°)
OKLaboklab(40.27% 0.0025 -0.1952)
OKLCHoklch(40.27% 0.195 270.7)
XYZxyz(9.7086, 5.7418, 41.1457)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2831AF #AFA628
analogous
#2875AF #2831AF #6328AF
triadic
#2831AF #AF2831 #31AF28
tetradic
#2831AF #AF2875 #AFA628 #28AF63
square
#2831AF #AF2875 #AFA628 #28AF63
split-complementary
#2831AF #AF6328 #75AF28
monochromatic
#11154B #1D237D #2831AF #414AD4 #737ADF

Accessibility & contrast

On white

9.77
#2831AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2831AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2831AF
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2831AF#FFFFFF#000000##FFFFFF
##2831AF1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2831af;
/* rgb */ color: rgb(40, 49, 175);
/* oklch */ color: oklch(40.3% 0.195 270.7);
Tailwind
colors: {
  custom: {
    50: '#796ac8',
    500: '#2831af',
    950: '#000000',
  },
}
SCSS
$custom: #2831af;
$custom-light: #796ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2831af",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 236,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40274,
    "c": 0.19527,
    "h": 270.7
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#2831AF
secondary
#C6C06D
accent
#DB42E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2831AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2831AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva