#1831B4#1831B4

#1831B4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.1% C 0.205 H 266.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#1831B4
RGBrgb(24, 49, 180)
HSLhsl(230, 76%, 40%)
HSVhsv(230, 87%, 71%)
CMYKcmyk(86.7%, 72.8%, 0%, 29.4%)
CIE-LABlab(28.60, 41.49, -70.69)
CIE-LCHlch(28.60, 81.96, 300.41°)
OKLaboklab(40.14% -0.0122 -0.205)
OKLCHoklch(40.14% 0.205 266.6)
XYZxyz(9.7103, 5.6849, 43.7567)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1831B4 #B49B18
analogous
#187FB4 #1831B4 #4D18B4
triadic
#1831B4 #B41831 #31B418
tetradic
#1831B4 #B4187F #B49B18 #18B44D
square
#1831B4 #B4187F #B49B18 #18B44D
split-complementary
#1831B4 #B44D18 #7FB418
monochromatic
#0A1448 #11227E #1831B4 #2745E2 #5D73E9

Accessibility & contrast

On white

9.83
#1831B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1831B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1831B4
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1831B4#FFFFFF#000000##FFFFFF
##1831B41.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1831b4;
/* rgb */ color: rgb(24, 49, 180);
/* oklch */ color: oklch(40.1% 0.205 266.6);
Tailwind
colors: {
  custom: {
    50: '#766acc',
    500: '#1831b4',
    950: '#000000',
  },
}
SCSS
$custom: #1831b4;
$custom-light: #766acc;
$custom-dark: #000000;
JSON
{
  "hex": "#1831b4",
  "rgb": {
    "r": 24,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 230.385,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.40137,
    "c": 0.20535,
    "h": 266.6
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#1831B4
secondary
#CDBB5B
accent
#D535F3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0A0614
muted
#7C7A82

Preview Lab

Preview with #1831B4

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

Preview Lab → · Contrast checker → · Palette generator →

#1831B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva