#2138BC#2138BC

#2138BC is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.4% C 0.206 H 267.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2138BC
RGBrgb(33, 56, 188)
HSLhsl(231, 70%, 43%)
HSVhsv(231, 82%, 74%)
CMYKcmyk(82.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(31.30, 40.62, -70.96)
CIE-LCHlch(31.30, 81.76, 299.78°)
OKLaboklab(42.42% -0.0085 -0.2057)
OKLCHoklch(42.42% 0.206 267.6)
XYZxyz(11.1153, 6.7812, 48.2903)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2138BC #BCA521
analogous
#2185BC #2138BC #5721BC
triadic
#2138BC #BC2138 #38BC21
tetradic
#2138BC #BC2185 #BCA521 #21BC57
square
#2138BC #BC2185 #BCA521 #21BC57
split-complementary
#2138BC #BC5721 #85BC21
monochromatic
#0F1954 #182888 #2138BC #3D55DD #7183E6

Accessibility & contrast

On white

8.91
#2138BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2138BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2138BC
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2138BC#FFFFFF#000000##FFFFFF
##2138BC1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0042BA
Tritanopia (blue-blind)
#005D76
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2138bc;
/* rgb */ color: rgb(33, 56, 188);
/* oklch */ color: oklch(42.4% 0.206 267.6);
Tailwind
colors: {
  custom: {
    50: '#7a6fd1',
    500: '#2138bc',
    950: '#000000',
  },
}
SCSS
$custom: #2138bc;
$custom-light: #7a6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2138bc",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 231.097,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42419,
    "c": 0.20583,
    "h": 267.6
  },
  "luminance": 0.06783
}

Semantic roles & 50–950 ramp

primary
#2138BC
secondary
#CDBE6C
accent
#D33BED
background
#F8F6FD
surface
#EFECFA
border
#CAC7D3
text
#0B0714
muted
#7C7A83

Preview Lab

Preview with #2138BC

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

Preview Lab → · Contrast checker → · Palette generator →

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