#2B31AF#2B31AF

#2B31AF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.194 H 271.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2B31AF
RGBrgb(43, 49, 175)
HSLhsl(237, 61%, 43%)
HSVhsv(237, 75%, 69%)
CMYKcmyk(75.4%, 72%, 0%, 31.4%)
CIE-LABlab(28.91, 41.10, -67.16)
CIE-LCHlch(28.91, 78.74, 301.47°)
OKLaboklab(40.43% 0.0057 -0.1944)
OKLCHoklch(40.43% 0.194 271.7)
XYZxyz(9.8298, 5.8043, 41.1514)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B31AF #AFA92B
analogous
#2B73AF #2B31AF #672BAF
triadic
#2B31AF #AF2B31 #31AF2B
tetradic
#2B31AF #AF2B73 #AFA92B #2BAF67
square
#2B31AF #AF2B73 #AFA92B #2BAF67
split-complementary
#2B31AF #AF672B #73AF2B
monochromatic
#13154D #1F237E #2B31AF #464CD1 #777CDE

Accessibility & contrast

On white

9.72
#2B31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2B31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B31AF
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B31AF#FFFFFF#000000##FFFFFF
##2B31AF1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b31af;
/* rgb */ color: rgb(43, 49, 175);
/* oklch */ color: oklch(40.4% 0.194 271.7);
Tailwind
colors: {
  custom: {
    50: '#7a6ac8',
    500: '#2b31af',
    950: '#000000',
  },
}
SCSS
$custom: #2b31af;
$custom-light: #7a6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b31af",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 237.273,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40433,
    "c": 0.19447,
    "h": 271.7
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

primary
#2B31AF
secondary
#C5C170
accent
#DC44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2B31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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