#1B258E#1B258E

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

Color values

HEX#1B258E
RGBrgb(27, 37, 142)
HSLhsl(235, 68%, 33%)
HSVhsv(235, 81%, 56%)
CMYKcmyk(81%, 73.9%, 0%, 44.3%)
CIE-LABlab(21.98, 35.34, -58.52)
CIE-LCHlch(21.98, 68.36, 301.13°)
OKLaboklab(34.2% -0.0012 -0.1695)
OKLCHoklch(34.2% 0.17 269.6)
XYZxyz(5.9944, 3.5085, 25.9472)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B258E #8E841B
analogous
#1B5E8E #1B258E #4B1B8E
triadic
#1B258E #8E1B25 #258E1B
tetradic
#1B258E #8E1B5E #8E841B #1B8E4B
square
#1B258E #8E1B5E #8E841B #1B8E4B
split-complementary
#1B258E #8E4B1B #5E8E1B
monochromatic
#070A27 #11185B #1B258E #2532C1 #4754DC

Accessibility & contrast

On white

12.34
#1B258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B258E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B258E#FFFFFF#000000##FFFFFF
##1B258E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b258e;
/* rgb */ color: rgb(27, 37, 142);
/* oklch */ color: oklch(34.2% 0.170 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d60b0',
    500: '#1b258e',
    950: '#000000',
  },
}
SCSS
$custom: #1b258e;
$custom-light: #6d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b258e",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 234.783,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34199,
    "c": 0.16952,
    "h": 269.6
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#1B258E
secondary
#BEB347
accent
#DC3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B258E

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

Preview Lab → · Contrast checker → · Palette generator →

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