#1B235E#1B235E

#1B235E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.105 H 272.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#1B235E
RGBrgb(27, 35, 94)
HSLhsl(233, 55%, 24%)
HSVhsv(233, 71%, 37%)
CMYKcmyk(71.3%, 62.8%, 0%, 63.1%)
CIE-LABlab(16.71, 18.27, -36.34)
CIE-LCHlch(16.71, 40.68, 296.69°)
OKLaboklab(28.92% 0.0041 -0.1047)
OKLCHoklch(28.92% 0.105 272.2)
XYZxyz(3.0727, 2.2429, 10.8585)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B235E #5E561B
analogous
#1B445E #1B235E #341B5E
triadic
#1B235E #5E1B23 #235E1B
tetradic
#1B235E #5E1B44 #5E561B #1B5E34
square
#1B235E #5E1B44 #5E561B #1B5E34
split-complementary
#1B235E #5E341B #445E1B
monochromatic
#070918 #0D112E #1B235E #29358E #3646BD

Accessibility & contrast

On white

14.50
#1B235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B235E
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B235E#FFFFFF#000000##FFFFFF
##1B235E1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b235e;
/* rgb */ color: rgb(27, 35, 94);
/* oklch */ color: oklch(28.9% 0.105 272.2);
Tailwind
colors: {
  custom: {
    50: '#615d8c',
    500: '#1b235e',
    950: '#000000',
  },
}
SCSS
$custom: #1b235e;
$custom-light: #615d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b235e",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 232.836,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28917,
    "c": 0.10475,
    "h": 272.2
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#1B235E
secondary
#948A41
accent
#CD49DF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1B235E

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

Preview Lab → · Contrast checker → · Palette generator →

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