#2138A0#2138A0

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

Color values

HEX#2138A0
RGBrgb(33, 56, 160)
HSLhsl(229, 66%, 38%)
HSVhsv(229, 79%, 63%)
CMYKcmyk(79.4%, 65%, 0%, 37.3%)
CIE-LABlab(28.61, 30.28, -58.64)
CIE-LCHlch(28.61, 66.00, 297.31°)
OKLaboklab(39.64% -0.0066 -0.1697)
OKLCHoklch(39.64% 0.17 267.8)
XYZxyz(8.3843, 5.6888, 33.9071)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138A0 #A08921
analogous
#2177A0 #2138A0 #4A21A0
triadic
#2138A0 #A02138 #38A021
tetradic
#2138A0 #A02177 #A08921 #21A04A
square
#2138A0 #A02177 #A08921 #21A04A
split-complementary
#2138A0 #A04A21 #77A021
monochromatic
#0C143B #17266D #2138A0 #2B4AD3 #5E75DE

Accessibility & contrast

On white

9.82
#2138A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2138A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138A0
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138A0#FFFFFF#000000##FFFFFF
##2138A01.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2138a0;
/* rgb */ color: rgb(33, 56, 160);
/* oklch */ color: oklch(39.6% 0.170 267.8);
Tailwind
colors: {
  custom: {
    50: '#726ebd',
    500: '#2138a0',
    950: '#000000',
  },
}
SCSS
$custom: #2138a0;
$custom-light: #726ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2138a0",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 160
  },
  "hsl": {
    "h": 229.134,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39642,
    "c": 0.16983,
    "h": 267.8
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2138A0

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

Preview Lab → · Contrast checker → · Palette generator →

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