#1B258D#1B258D

#1B258D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.168 H 269.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1B258D
RGBrgb(27, 37, 141)
HSLhsl(235, 68%, 33%)
HSVhsv(235, 81%, 55%)
CMYKcmyk(80.9%, 73.8%, 0%, 44.7%)
CIE-LABlab(21.87, 34.97, -58.08)
CIE-LCHlch(21.87, 67.80, 301.06°)
OKLaboklab(34.09% -0.001 -0.1682)
OKLCHoklch(34.09% 0.168 269.6)
XYZxyz(5.9196, 3.4786, 25.5536)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B258D #8D831B
analogous
#1B5E8D #1B258D #4A1B8D
triadic
#1B258D #8D1B25 #258D1B
tetradic
#1B258D #8D1B5E #8D831B #1B8D4A
square
#1B258D #8D1B5E #8D831B #1B8D4A
split-complementary
#1B258D #8D4A1B #5E8D1B
monochromatic
#070A26 #11185A #1B258D #2532C0 #4754DC

Accessibility & contrast

On white

12.38
#1B258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B258D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B258D#FFFFFF#000000##FFFFFF
##1B258D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b258d;
/* rgb */ color: rgb(27, 37, 141);
/* oklch */ color: oklch(34.1% 0.168 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d60af',
    500: '#1b258d',
    950: '#000000',
  },
}
SCSS
$custom: #1b258d;
$custom-light: #6d60af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b258d",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 234.737,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3409,
    "c": 0.16823,
    "h": 269.6
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#1B258D
secondary
#BDB346
accent
#DB3DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B258D

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

Preview Lab → · Contrast checker → · Palette generator →

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