#2631A8#2631A8

#2631A8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.187 H 270.4°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2631A8
RGBrgb(38, 49, 168)
HSLhsl(235, 63%, 40%)
HSVhsv(235, 77%, 66%)
CMYKcmyk(77.4%, 70.8%, 0%, 34.1%)
CIE-LABlab(27.94, 38.19, -64.58)
CIE-LCHlch(27.94, 75.02, 300.60°)
OKLaboklab(39.45% 0.0013 -0.187)
OKLCHoklch(39.45% 0.187 270.4)
XYZxyz(8.9631, 5.4349, 37.6148)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2631A8 #A89D26
analogous
#2672A8 #2631A8 #5C26A8
triadic
#2631A8 #A82631 #31A826
tetradic
#2631A8 #A82672 #A89D26 #26A85C
square
#2631A8 #A82672 #A89D26 #26A85C
split-complementary
#2631A8 #A85C26 #72A826
monochromatic
#0F1444 #1B2276 #2631A8 #3946D2 #6B75DE

Accessibility & contrast

On white

10.06
#2631A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2631A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2631A8
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2631A8#FFFFFF#000000##FFFFFF
##2631A81.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2631a8;
/* rgb */ color: rgb(38, 49, 168);
/* oklch */ color: oklch(39.4% 0.187 270.4);
Tailwind
colors: {
  custom: {
    50: '#776ac3',
    500: '#2631a8',
    950: '#000000',
  },
}
SCSS
$custom: #2631a8;
$custom-light: #776ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#2631a8",
  "rgb": {
    "r": 38,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 234.923,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39449,
    "c": 0.18696,
    "h": 270.4
  },
  "luminance": 0.05436
}

Semantic roles & 50–950 ramp

primary
#2631A8
secondary
#C4BC66
accent
#D842E6
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2631A8

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

Preview Lab → · Contrast checker → · Palette generator →

#2631A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva