#2138A6#2138A6

#2138A6 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.178 H 267.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2138A6
RGBrgb(33, 56, 166)
HSLhsl(230, 67%, 39%)
HSVhsv(230, 80%, 65%)
CMYKcmyk(80.1%, 66.3%, 0%, 34.9%)
CIE-LABlab(29.17, 32.54, -61.36)
CIE-LCHlch(29.17, 69.46, 297.94°)
OKLaboklab(40.22% -0.0069 -0.1776)
OKLCHoklch(40.22% 0.178 267.8)
XYZxyz(8.9219, 5.9038, 36.7383)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138A6 #A68F21
analogous
#217BA6 #2138A6 #4D21A6
triadic
#2138A6 #A62138 #38A621
tetradic
#2138A6 #A6217B #A68F21 #21A64D
square
#2138A6 #A6217B #A68F21 #21A64D
split-complementary
#2138A6 #A64D21 #7BA621
monochromatic
#0D1640 #172773 #2138A6 #2F4BD6 #6277E0

Accessibility & contrast

On white

9.63
#2138A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2138A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138A6
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138A6#FFFFFF#000000##FFFFFF
##2138A61.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2138a6;
/* rgb */ color: rgb(33, 56, 166);
/* oklch */ color: oklch(40.2% 0.178 267.8);
Tailwind
colors: {
  custom: {
    50: '#746ec1',
    500: '#2138a6',
    950: '#000000',
  },
}
SCSS
$custom: #2138a6;
$custom-light: #746ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2138a6",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 166
  },
  "hsl": {
    "h": 229.624,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4022,
    "c": 0.17777,
    "h": 267.8
  },
  "luminance": 0.05905
}

Semantic roles & 50–950 ramp

primary
#2138A6
secondary
#C5B35E
accent
#CC3EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2138A6

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

Preview Lab → · Contrast checker → · Palette generator →

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