#1838B4#1838B4

#1838B4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.198 H 265.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#1838B4
RGBrgb(24, 56, 180)
HSLhsl(228, 76%, 40%)
HSVhsv(228, 87%, 71%)
CMYKcmyk(86.7%, 68.9%, 0%, 29.4%)
CIE-LABlab(30.20, 37.12, -68.06)
CIE-LCHlch(30.20, 77.52, 298.61°)
OKLaboklab(41.29% -0.0145 -0.1973)
OKLCHoklch(41.29% 0.198 265.8)
XYZxyz(10.0262, 6.3166, 43.8619)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1838B4 #B49418
analogous
#1886B4 #1838B4 #4618B4
triadic
#1838B4 #B41838 #38B418
tetradic
#1838B4 #B41886 #B49418 #18B446
square
#1838B4 #B41886 #B49418 #18B446
split-complementary
#1838B4 #B44618 #86B418
monochromatic
#0A1648 #11277E #1838B4 #274DE2 #5D7AE9

Accessibility & contrast

On white

9.28
#1838B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1838B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1838B4
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1838B4#FFFFFF#000000##FFFFFF
##1838B41.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0040B2
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1838b4;
/* rgb */ color: rgb(24, 56, 180);
/* oklch */ color: oklch(41.3% 0.198 265.8);
Tailwind
colors: {
  custom: {
    50: '#756ecc',
    500: '#1838b4',
    950: '#000000',
  },
}
SCSS
$custom: #1838b4;
$custom-light: #756ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#1838b4",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 227.692,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.4129,
    "c": 0.19786,
    "h": 265.8
  },
  "luminance": 0.06318
}

Semantic roles & 50–950 ramp

primary
#1838B4
secondary
#CDB65B
accent
#CC35F3
background
#F7F6FC
surface
#EEECF9
border
#C9C7D2
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1838B4

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

Preview Lab → · Contrast checker → · Palette generator →

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