#2638A2#2638A2

#2638A2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.171 H 269.3°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2638A2
RGBrgb(38, 56, 162)
HSLhsl(231, 62%, 39%)
HSVhsv(231, 77%, 64%)
CMYKcmyk(76.5%, 65.4%, 0%, 36.5%)
CIE-LABlab(29.03, 31.54, -59.17)
CIE-LCHlch(29.03, 67.05, 298.06°)
OKLaboklab(40.07% -0.0021 -0.1711)
OKLCHoklch(40.07% 0.171 269.3)
XYZxyz(8.7328, 5.8481, 34.8440)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2638A2 #A29026
analogous
#2676A2 #2638A2 #5226A2
triadic
#2638A2 #A22638 #38A226
tetradic
#2638A2 #A22676 #A29026 #26A252
square
#2638A2 #A22676 #A29026 #26A252
split-complementary
#2638A2 #A25226 #76A226
monochromatic
#0F163F #1A2770 #2638A2 #354CD0 #6778DB

Accessibility & contrast

On white

9.68
#2638A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2638A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2638A2
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2638A2#FFFFFF#000000##FFFFFF
##2638A21.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2638a2;
/* rgb */ color: rgb(38, 56, 162);
/* oklch */ color: oklch(40.1% 0.171 269.3);
Tailwind
colors: {
  custom: {
    50: '#746ebf',
    500: '#2638a2',
    950: '#000000',
  },
}
SCSS
$custom: #2638a2;
$custom-light: #746ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2638a2",
  "rgb": {
    "r": 38,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 231.29,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40065,
    "c": 0.17114,
    "h": 269.3
  },
  "luminance": 0.05849
}

Semantic roles & 50–950 ramp

primary
#2638A2
secondary
#C1B463
accent
#CE43E5
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2638A2

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

Preview Lab → · Contrast checker → · Palette generator →

#2638A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva