#2231A5#2231A5

#2231A5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.184 H 269.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2231A5
RGBrgb(34, 49, 165)
HSLhsl(233, 66%, 39%)
HSVhsv(233, 79%, 65%)
CMYKcmyk(79.4%, 70.3%, 0%, 35.3%)
CIE-LABlab(27.44, 36.76, -63.59)
CIE-LCHlch(27.44, 73.45, 300.03°)
OKLaboklab(38.95% -0.0024 -0.1842)
OKLCHoklch(38.95% 0.184 269.3)
XYZxyz(8.5472, 5.2523, 36.1534)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2231A5 #A59622
analogous
#2273A5 #2231A5 #5522A5
triadic
#2231A5 #A52231 #31A522
tetradic
#2231A5 #A52273 #A59622 #22A555
square
#2231A5 #A52273 #A59622 #22A555
split-complementary
#2231A5 #A55522 #73A522
monochromatic
#0D1340 #182272 #2231A5 #3043D4 #6371DF

Accessibility & contrast

On white

10.24
#2231A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2231A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2231A5
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2231A5#FFFFFF#000000##FFFFFF
##2231A51.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2231a5;
/* rgb */ color: rgb(34, 49, 165);
/* oklch */ color: oklch(38.9% 0.184 269.3);
Tailwind
colors: {
  custom: {
    50: '#7469c1',
    500: '#2231a5',
    950: '#000000',
  },
}
SCSS
$custom: #2231a5;
$custom-light: #7469c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2231a5",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 233.13,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38945,
    "c": 0.18419,
    "h": 269.3
  },
  "luminance": 0.05253
}

Semantic roles & 50–950 ramp

primary
#2231A5
secondary
#C4B85F
accent
#D53FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2231A5

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

Preview Lab → · Contrast checker → · Palette generator →

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