#2138A4#2138A4

#2138A4 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.175 H 267.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2138A4
RGBrgb(33, 56, 164)
HSLhsl(229, 66%, 39%)
HSVhsv(229, 80%, 64%)
CMYKcmyk(79.9%, 65.9%, 0%, 35.7%)
CIE-LABlab(28.98, 31.79, -60.46)
CIE-LCHlch(28.98, 68.31, 297.74°)
OKLaboklab(40.03% -0.0068 -0.175)
OKLCHoklch(40.03% 0.175 267.8)
XYZxyz(8.7399, 5.8310, 35.7796)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138A4 #A48D21
analogous
#2179A4 #2138A4 #4C21A4
triadic
#2138A4 #A42138 #38A421
tetradic
#2138A4 #A42179 #A48D21 #21A44C
square
#2138A4 #A42179 #A48D21 #21A44C
split-complementary
#2138A4 #A44C21 #79A421
monochromatic
#0C153E #172771 #2138A4 #2D4BD5 #6077DF

Accessibility & contrast

On white

9.69
#2138A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2138A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138A4
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138A4#FFFFFF#000000##FFFFFF
##2138A41.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2138a4;
/* rgb */ color: rgb(33, 56, 164);
/* oklch */ color: oklch(40.0% 0.175 267.8);
Tailwind
colors: {
  custom: {
    50: '#736ec0',
    500: '#2138a4',
    950: '#000000',
  },
}
SCSS
$custom: #2138a4;
$custom-light: #736ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2138a4",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 164
  },
  "hsl": {
    "h": 229.466,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40026,
    "c": 0.17514,
    "h": 267.8
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#2138A4
secondary
#C4B25D
accent
#CB3EE9
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2138A4

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

Preview Lab → · Contrast checker → · Palette generator →

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