#242BA6#242BA6

#242BA6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.191 H 270.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#242BA6
RGBrgb(36, 43, 166)
HSLhsl(237, 64%, 40%)
HSVhsv(237, 78%, 65%)
CMYKcmyk(78.3%, 74.1%, 0%, 34.9%)
CIE-LABlab(26.32, 40.95, -66.05)
CIE-LCHlch(26.32, 77.71, 301.80°)
OKLaboklab(38.2% 0.0022 -0.1913)
OKLCHoklch(38.2% 0.191 270.7)
XYZxyz(8.4720, 4.8551, 36.5596)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242BA6 #A69F24
analogous
#246CA6 #242BA6 #5E24A6
triadic
#242BA6 #A6242B #2BA624
tetradic
#242BA6 #A6246C #A69F24 #24A65E
square
#242BA6 #A6246C #A69F24 #24A65E
split-complementary
#242BA6 #A65E24 #6CA624
monochromatic
#0E1141 #191E74 #242BA6 #343DD3 #666DDE

Accessibility & contrast

On white

10.65
#242BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#242BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242BA6
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242BA6#FFFFFF#000000##FFFFFF
##242BA61.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #242ba6;
/* rgb */ color: rgb(36, 43, 166);
/* oklch */ color: oklch(38.2% 0.191 270.7);
Tailwind
colors: {
  custom: {
    50: '#7665c2',
    500: '#242ba6',
    950: '#000000',
  },
}
SCSS
$custom: #242ba6;
$custom-light: #7665c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242ba6",
  "rgb": {
    "r": 36,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 236.769,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38196,
    "c": 0.19127,
    "h": 270.7
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#242BA6
secondary
#C4BE62
accent
#DE40E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #242BA6

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

Preview Lab → · Contrast checker → · Palette generator →

#242BA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva