#2123A6#2123A6

#2123A6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.200 H 270.5°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2123A6
RGBrgb(33, 35, 166)
HSLhsl(239, 67%, 39%)
HSVhsv(239, 80%, 65%)
CMYKcmyk(80.1%, 78.9%, 0%, 34.9%)
CIE-LABlab(24.57, 45.25, -68.95)
CIE-LCHlch(24.57, 82.47, 303.28°)
OKLaboklab(36.92% 0.0018 -0.1996)
OKLCHoklch(36.92% 0.2 270.5)
XYZxyz(8.1088, 4.2776, 36.4673)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2123A6 #A6A421
analogous
#2166A6 #2123A6 #6221A6
triadic
#2123A6 #A62123 #23A621
tetradic
#2123A6 #A62166 #A6A421 #21A662
square
#2123A6 #A62166 #A6A421 #21A662
split-complementary
#2123A6 #A66221 #66A621
monochromatic
#0D0D40 #171873 #2123A6 #2F31D6 #6264E0

Accessibility & contrast

On white

11.32
#2123A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2123A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2123A6
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2123A6#FFFFFF#000000##FFFFFF
##2123A61.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2123a6;
/* rgb */ color: rgb(33, 35, 166);
/* oklch */ color: oklch(36.9% 0.200 270.5);
Tailwind
colors: {
  custom: {
    50: '#7660c2',
    500: '#2123a6',
    950: '#000000',
  },
}
SCSS
$custom: #2123a6;
$custom-light: #7660c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2123a6",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 239.098,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36916,
    "c": 0.19966,
    "h": 270.5
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#2123A6
secondary
#C5C35E
accent
#E73EEA
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #2123A6

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

Preview Lab → · Contrast checker → · Palette generator →

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