#1B238F#1B238F

#1B238F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.173 H 269.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1B238F
RGBrgb(27, 35, 143)
HSLhsl(236, 68%, 33%)
HSVhsv(236, 81%, 56%)
CMYKcmyk(81.1%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.64, 36.93, -59.69)
CIE-LCHlch(21.64, 70.19, 301.74°)
OKLaboklab(34% -0.0005 -0.1729)
OKLCHoklch(34% 0.173 269.8)
XYZxyz(6.0093, 3.4176, 26.3242)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B238F #8F871B
analogous
#1B5D8F #1B238F #4D1B8F
triadic
#1B238F #8F1B23 #238F1B
tetradic
#1B238F #8F1B5D #8F871B #1B8F4D
square
#1B238F #8F1B5D #8F871B #1B8F4D
split-complementary
#1B238F #8F4D1B #5D8F1B
monochromatic
#080A28 #11165C #1B238F #2530C2 #4852DC

Accessibility & contrast

On white

12.47
#1B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B238F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B238F#FFFFFF#000000##FFFFFF
##1B238F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b238f;
/* rgb */ color: rgb(27, 35, 143);
/* oklch */ color: oklch(34.0% 0.173 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e5fb1',
    500: '#1b238f',
    950: '#000000',
  },
}
SCSS
$custom: #1b238f;
$custom-light: #6e5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b238f",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 235.862,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33996,
    "c": 0.1729,
    "h": 269.8
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#1B238F
secondary
#BEB648
accent
#DF3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B238F

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

Preview Lab → · Contrast checker → · Palette generator →

#1B238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva