#2138A7#2138A7

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

Color values

HEX#2138A7
RGBrgb(33, 56, 167)
HSLhsl(230, 67%, 39%)
HSVhsv(230, 80%, 65%)
CMYKcmyk(80.2%, 66.5%, 0%, 34.5%)
CIE-LABlab(29.26, 32.92, -61.81)
CIE-LCHlch(29.26, 70.03, 298.04°)
OKLaboklab(40.32% -0.0069 -0.1789)
OKLCHoklch(40.32% 0.179 267.8)
XYZxyz(9.0140, 5.9407, 37.2233)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138A7 #A79021
analogous
#217BA7 #2138A7 #4D21A7
triadic
#2138A7 #A72138 #38A721
tetradic
#2138A7 #A7217B #A79021 #21A74D
square
#2138A7 #A7217B #A79021 #21A74D
split-complementary
#2138A7 #A74D21 #7BA721
monochromatic
#0D1641 #172774 #2138A7 #2F4CD6 #6278E0

Accessibility & contrast

On white

9.60
#2138A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2138A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138A7
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138A7#FFFFFF#000000##FFFFFF
##2138A71.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2138a7;
/* rgb */ color: rgb(33, 56, 167);
/* oklch */ color: oklch(40.3% 0.179 267.8);
Tailwind
colors: {
  custom: {
    50: '#746ec2',
    500: '#2138a7',
    950: '#000000',
  },
}
SCSS
$custom: #2138a7;
$custom-light: #746ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2138a7",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 229.701,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40317,
    "c": 0.17908,
    "h": 267.8
  },
  "luminance": 0.05942
}

Semantic roles & 50–950 ramp

primary
#2138A7
secondary
#C5B45F
accent
#CC3EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2138A7

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

Preview Lab → · Contrast checker → · Palette generator →

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