#2231A9#2231A9

#2231A9 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.189 H 269.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2231A9
RGBrgb(34, 49, 169)
HSLhsl(233, 67%, 40%)
HSVhsv(233, 80%, 66%)
CMYKcmyk(79.9%, 71%, 0%, 33.7%)
CIE-LABlab(27.85, 38.20, -65.34)
CIE-LCHlch(27.85, 75.69, 300.31°)
OKLaboklab(39.36% -0.0028 -0.1893)
OKLCHoklch(39.36% 0.189 269.2)
XYZxyz(8.9170, 5.4003, 38.1008)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2231A9 #A99A22
analogous
#2275A9 #2231A9 #5622A9
triadic
#2231A9 #A92231 #31A922
tetradic
#2231A9 #A92275 #A99A22 #22A956
square
#2231A9 #A92275 #A99A22 #22A956
split-complementary
#2231A9 #A95622 #75A922
monochromatic
#0D1343 #182276 #2231A9 #3245D6 #6573E0

Accessibility & contrast

On white

10.10
#2231A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2231A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2231A9
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2231A9#FFFFFF#000000##FFFFFF
##2231A91.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2231a9;
/* rgb */ color: rgb(34, 49, 169);
/* oklch */ color: oklch(39.4% 0.189 269.2);
Tailwind
colors: {
  custom: {
    50: '#7669c4',
    500: '#2231a9',
    950: '#000000',
  },
}
SCSS
$custom: #2231a9;
$custom-light: #7669c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2231a9",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 233.333,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39359,
    "c": 0.18928,
    "h": 269.2
  },
  "luminance": 0.05401
}

Semantic roles & 50–950 ramp

primary
#2231A9
secondary
#C5BA61
accent
#D63EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2231A9

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

Preview Lab → · Contrast checker → · Palette generator →

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