#2138A9#2138A9

#2138A9 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.182 H 267.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2138A9
RGBrgb(33, 56, 169)
HSLhsl(230, 67%, 40%)
HSVhsv(230, 80%, 66%)
CMYKcmyk(80.5%, 66.9%, 0%, 33.7%)
CIE-LABlab(29.45, 33.67, -62.70)
CIE-LCHlch(29.45, 71.17, 298.23°)
OKLaboklab(40.51% -0.007 -0.1816)
OKLCHoklch(40.51% 0.182 267.8)
XYZxyz(9.2003, 6.0152, 38.2046)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138A9 #A99221
analogous
#217CA9 #2138A9 #4E21A9
triadic
#2138A9 #A92138 #38A921
tetradic
#2138A9 #A9217C #A99221 #21A94E
square
#2138A9 #A9217C #A99221 #21A94E
split-complementary
#2138A9 #A94E21 #7CA921
monochromatic
#0D1643 #172776 #2138A9 #314DD7 #6479E1

Accessibility & contrast

On white

9.53
#2138A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2138A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138A9
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138A9#FFFFFF#000000##FFFFFF
##2138A91.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#003FA7
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2138a9;
/* rgb */ color: rgb(33, 56, 169);
/* oklch */ color: oklch(40.5% 0.182 267.8);
Tailwind
colors: {
  custom: {
    50: '#756ec4',
    500: '#2138a9',
    950: '#000000',
  },
}
SCSS
$custom: #2138a9;
$custom-light: #756ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#2138a9",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 169
  },
  "hsl": {
    "h": 229.853,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40512,
    "c": 0.1817,
    "h": 267.8
  },
  "luminance": 0.06016
}

Semantic roles & 50–950 ramp

primary
#2138A9
secondary
#C6B560
accent
#CD3EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2138A9

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

Preview Lab → · Contrast checker → · Palette generator →

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