#2231BC#2231BC

#2231BC is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.4% C 0.213 H 268.6°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2231BC
RGBrgb(34, 49, 188)
HSLhsl(234, 69%, 44%)
HSVhsv(234, 82%, 74%)
CMYKcmyk(81.9%, 73.9%, 0%, 26.3%)
CIE-LABlab(29.83, 44.88, -73.40)
CIE-LCHlch(29.83, 86.03, 301.44°)
OKLaboklab(41.37% -0.0051 -0.2127)
OKLCHoklch(41.37% 0.213 268.6)
XYZxyz(10.8320, 6.1663, 48.1865)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2231BC #BCAD22
analogous
#227EBC #2231BC #6022BC
triadic
#2231BC #BC2231 #31BC22
tetradic
#2231BC #BC227E #BCAD22 #22BC60
square
#2231BC #BC227E #BCAD22 #22BC60
split-complementary
#2231BC #BC6022 #7EBC22
monochromatic
#0F1654 #192388 #2231BC #3F4EDC #737EE6

Accessibility & contrast

On white

9.40
#2231BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2231BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2231BC
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2231BC#FFFFFF#000000##FFFFFF
##2231BC1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#003FBA
Tritanopia (blue-blind)
#005A74
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2231bc;
/* rgb */ color: rgb(34, 49, 188);
/* oklch */ color: oklch(41.4% 0.213 268.6);
Tailwind
colors: {
  custom: {
    50: '#7a6ad2',
    500: '#2231bc',
    950: '#000000',
  },
}
SCSS
$custom: #2231bc;
$custom-light: #7a6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#2231bc",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 234.156,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.21276,
    "h": 268.6
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#2231BC
secondary
#CDC36D
accent
#DB3CEC
background
#F8F6FD
surface
#EFEBFA
border
#CAC6D3
text
#0B0614
muted
#7C7A83

Preview Lab

Preview with #2231BC

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

Preview Lab → · Contrast checker → · Palette generator →

#2231BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva