#2138A1#2138A1

#2138A1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.171 H 267.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2138A1
RGBrgb(33, 56, 161)
HSLhsl(229, 66%, 38%)
HSVhsv(229, 80%, 63%)
CMYKcmyk(79.5%, 65.2%, 0%, 36.9%)
CIE-LABlab(28.70, 30.66, -59.10)
CIE-LCHlch(28.70, 66.58, 297.42°)
OKLaboklab(39.74% -0.0067 -0.171)
OKLCHoklch(39.74% 0.171 267.8)
XYZxyz(8.4722, 5.7239, 34.3696)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138A1 #A18A21
analogous
#2178A1 #2138A1 #4A21A1
triadic
#2138A1 #A12138 #38A121
tetradic
#2138A1 #A12178 #A18A21 #21A14A
square
#2138A1 #A12178 #A18A21 #21A14A
split-complementary
#2138A1 #A14A21 #78A121
monochromatic
#0C153B #17266E #2138A1 #2C4AD4 #5E75DE

Accessibility & contrast

On white

9.79
#2138A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2138A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138A1
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138A1#FFFFFF#000000##FFFFFF
##2138A11.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2138a1;
/* rgb */ color: rgb(33, 56, 161);
/* oklch */ color: oklch(39.7% 0.171 267.8);
Tailwind
colors: {
  custom: {
    50: '#726ebe',
    500: '#2138a1',
    950: '#000000',
  },
}
SCSS
$custom: #2138a1;
$custom-light: #726ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2138a1",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 161
  },
  "hsl": {
    "h": 229.219,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39738,
    "c": 0.17116,
    "h": 267.8
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#2138A1
secondary
#C3B05B
accent
#CA3FE9
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2138A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2138A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva