#2123A4#2123A4

#2123A4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.197 H 270.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2123A4
RGBrgb(33, 35, 164)
HSLhsl(239, 66%, 39%)
HSVhsv(239, 80%, 64%)
CMYKcmyk(79.9%, 78.7%, 0%, 35.7%)
CIE-LABlab(24.34, 44.58, -68.12)
CIE-LCHlch(24.34, 81.41, 303.21°)
OKLaboklab(36.69% 0.0022 -0.1972)
OKLCHoklch(36.69% 0.197 270.6)
XYZxyz(7.9268, 4.2048, 35.5086)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2123A4 #A4A221
analogous
#2164A4 #2123A4 #6021A4
triadic
#2123A4 #A42123 #23A421
tetradic
#2123A4 #A42164 #A4A221 #21A460
square
#2123A4 #A42164 #A4A221 #21A460
split-complementary
#2123A4 #A46021 #64A421
monochromatic
#0C0D3E #171871 #2123A4 #2D30D5 #6062DF

Accessibility & contrast

On white

11.41
#2123A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2123A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2123A4
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2123A4#FFFFFF#000000##FFFFFF
##2123A41.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0033A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2123a4;
/* rgb */ color: rgb(33, 35, 164);
/* oklch */ color: oklch(36.7% 0.197 270.6);
Tailwind
colors: {
  custom: {
    50: '#7560c0',
    500: '#2123a4',
    950: '#000000',
  },
}
SCSS
$custom: #2123a4;
$custom-light: #7560c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2123a4",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 239.084,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36686,
    "c": 0.19726,
    "h": 270.6
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#2123A4
secondary
#C4C25D
accent
#E73EE9
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2123A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2123A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva